gnu: python-curio: Update to 1.6.

* gnu/packages/python-xyz.scm (python-curio): Update to 1.6.
[build-system]: Swap to pyrpoject-build-system.
[arguments]<test-flags>: Move deselect options here, ignore more
shaky tests.
<phases>: Use default 'check phase.
[native-inputs]: Add python-setuptools and python-wheel.

Change-Id: I58a4098cbcf5063f88e41711fc06608520853e4e
This commit is contained in:
Sharlatan Hellseher 2024-11-10 21:27:22 +00:00
parent 5c3e101ef4
commit db9d704290
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -16479,30 +16479,36 @@ printing of sub-tables by specifying a row range.")
(define-public python-curio (define-public python-curio
(package (package
(name "python-curio") (name "python-curio")
(version "1.5") (version "1.6")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "curio" version)) (uri (pypi-uri "curio" version))
(sha256 (sha256
(base32 "045wwg16qadsalhicbv21p14sj8i4w0l57639j7dmdqbb4p2225g")))) (base32 "0isj3jl5mx6m25nr1f7r91hfaydhkvmks9p85dyvl5h2n9nmhajn"))))
(build-system python-build-system) (build-system pyproject-build-system)
(arguments (arguments
`(#:phases (list
(modify-phases %standard-phases #:test-flags
(replace 'check #~(list ;; AttributeError: 'NoneType' object has no attribute
(lambda* (#:key inputs outputs tests? #:allow-other-keys) ;; 'terminate'
(when tests? "--deselect=tests/test_workers.py::test_exception"
(add-installed-pythonpath inputs outputs) ;; Tries to open an outgoing connection.
(invoke "pytest" "-vv" "-k" "--deselect=tests/test_network.py::test_ssl_outgoing"
(string-append ;; This test fails since Python 3.9.9, see
;; Tries to open an outgoing connection. ;; <https://github.com/dabeaz/curio/issues/347>.
"not test_ssl_outgoing " ;; AttributeError: 'NoneType' object has no attribute
;; This test fails since Python 3.9.9 (see: ;; 'terminate'
;; https://github.com/dabeaz/curio/issues/347). "--deselect=tests/test_workers.py::test_worker_timeout"
"and not test_timeout")))))))) ;; AttributeError: 'NoneType' object has no attribute
;; 'terminate'
"--deselect=tests/test_workers.py::test_bad_cpu"
"--deselect=tests/test_workers.py::test_cpu"
"--deselect=tests/test_workers.py::test_worker_cancel")))
(native-inputs (native-inputs
(list python-pytest)) (list python-pytest
python-setuptools
python-wheel))
(home-page "https://github.com/dabeaz/curio") (home-page "https://github.com/dabeaz/curio")
(synopsis "Coroutine-based library for concurrent Python") (synopsis "Coroutine-based library for concurrent Python")
(description (description