From 0b136925b61c96631f77b2acabe68f9fa82ad65b Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Sat, 8 Nov 2025 15:08:40 +0100 Subject: [PATCH] gnu: python-interlap: Switch to pyproject. * gnu/packages/python-xyz.scm (python-interlap): [source]: Switch to git-fetch. [build-system]: Switch to pyproject-build-system. [arguments]<#:test-backend, #:test-flags>: Set them. [native-inputs]: Add python-setuptools. [description]: Improve style. Change-Id: I652d4793f240ae1b628a2cc9808841c1b6c8fcd4 Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-xyz.scm | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 8edccf3574362dfadb329305444b00b83c3b542e..f157ac34d45cc50bcc3cc2cb6e93b2de644299d4 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -28994,16 +28994,25 @@ converters and more, those based on the library itself.") (package (name "python-interlap") (version "0.2.7") - (source (origin - (method url-fetch) - (uri (pypi-uri "interlap" version)) - (sha256 - (base32 - "1jbfh00bkrf0i5psa6n75rlgmqp5389xixa9j29w8rxhah6g7r1i")))) - (build-system python-build-system) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/brentp/interlap") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0kmw72ilhsfx7piikl92b1s0rnax49qc7idjxsbwhvpklyjiylfm")))) + (build-system pyproject-build-system) + (arguments + (list + #:test-backend #~'custom + #:test-flags #~(list "interlap.py"))) + (native-inputs (list python-setuptools)) (home-page "https://brentp.github.io/interlap") (synopsis "Fast, simple interval overlap testing") - (description "InterLap does fast interval overlap testing with a simple Python data + (description + "InterLap does fast interval overlap testing with a simple Python data structure.") (license license:expat)))