From b66ea1e9ff33570abbd9b861b07fc8fdcf8a34c5 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 13 Jul 2025 08:38:01 +0100 Subject: [PATCH] gnu: python-sortedcontainers: Switch to pyproject, enable tests. * gnu/packages/python-xyz.scm (python-sortedcontainers): [source]: Switch to git-fetch containing tests. [build-system]: Use pyproject. [arguments] : Now enable them. [native-inputs]: Add python-pytest-bootstrap and python-setuptools. Change-Id: Ibce0dd93d964853e734424e029f9197e67f1f828 --- gnu/packages/python-xyz.scm | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index b60ba132d97f5e9b4931169b641d2709d1c5b9b2..fdb994047e301d81e1ec8e74f48acfc6fd388ae6 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -30489,15 +30489,18 @@ that is accessible to other projects developed in Cython.") (version "2.4.0") (source (origin - (method url-fetch) - (uri (pypi-uri "sortedcontainers" version)) + (method git-fetch) ;no tests in PyPI archive + (uri (git-reference + (url "https://github.com/grantjenks/python-sortedcontainers") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) (sha256 - (base32 - "126vpywl7aly6zir033a9indgyficlzl68qls61nn2y3djhabji5")))) - (build-system python-build-system) + (base32 "190w2mvgvx0r5k0r8117slq48nh6k7xidbpsrp02wnmcd0rx45k1")))) + (build-system pyproject-build-system) (arguments - ;; TODO: Circular dependency on pytest. - '(#:tests? #f)) + (list #:test-flags #~(list "--pyargs" "sortedcontainers"))) + (native-inputs + (list python-pytest-bootstrap python-setuptools)) (home-page "https://grantjenks.com/docs/sortedcontainers/") (synopsis "Sorted List, Sorted Dict, Sorted Set") (description