guix_mirror_bot pushed a commit to branch python-team
in repository guix.
commit 74592cfbd4446707e30ec079b0208d5265a2e303
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Sun Jul 13 08:38:01 2025 +0100
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] <tests?>: 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 5e95fe60c5..9b66af395e 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -30530,15 +30530,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