From 5476a33c76de84b57894a1845afa0a81481c8c46 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Thu, 24 Jul 2025 23:45:41 +0200 Subject: [PATCH] gnu: python-sortedcollections: Switch to git-fetch and enable tests. * gnu/packages/python-xyz.scm (python-sortedcollections): [source]: Switch to git-fetch. [arguments]: Remove them. [native-inputs]: Add python-pytest, python-pytest-cov. Change-Id: I153530f691f33645a57af338840cb6bd3b1d4b24 Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-xyz.scm | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 9a2a067f4d6d6544cd2c8c8d4f9c5ce5cf712606..7f9956779de6a2342a18658691c5cd2bba2ff80b 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -30241,15 +30241,19 @@ that is accessible to other projects developed in Cython.") (version "2.1.0") (source (origin - (method url-fetch) - (uri (pypi-uri "sortedcollections" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/grantjenks/python-sortedcollections") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) (sha256 - (base32 "1kfabpnjyjm5ml2zspry9jy3xq49aybchgaa4ahic2jqdjfn1sfq")))) + (base32 "1y2xsbh31jp9fsjy53g5ma974z7a9vcds6ij1vlh00nllzqlwihs")))) (build-system pyproject-build-system) - (arguments '(#:tests? #f)) ; Tests not included in release tarball. - (native-inputs (list python-setuptools python-wheel)) - (propagated-inputs - (list python-sortedcontainers)) + (native-inputs (list python-setuptools + python-pytest + python-pytest-cov + python-wheel)) + (propagated-inputs (list python-sortedcontainers)) (home-page "https://www.grantjenks.com/docs/sortedcollections/") (synopsis "Python Sorted Collections") (description "Sorted Collections is a Python sorted collections library.")