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
This commit is contained in:
Sharlatan Hellseher 2025-07-13 08:38:01 +01:00
parent 989f55b4ba
commit c979909a3b
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -30513,15 +30513,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