mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-multiprocess: Update to 0.70.14.
* gnu/packages/python-xyz.scm (python-multiprocess): Update to 0.70.14. [build-system]: Use pyproject-build-system. [arguments]: Adjust directory containing tests; disable two more tests; replace check phase instead of deleting and adding it; run tests conditionally.
This commit is contained in:
parent
95fdd862d0
commit
abda97b645
1 changed files with 22 additions and 18 deletions
|
@ -23988,35 +23988,39 @@ the saved state of the original interpreter session.")
|
||||||
(define-public python-multiprocess
|
(define-public python-multiprocess
|
||||||
(package
|
(package
|
||||||
(name "python-multiprocess")
|
(name "python-multiprocess")
|
||||||
(version "0.70.9")
|
(version "0.70.14")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "multiprocess" version))
|
(uri (pypi-uri "multiprocess" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1r882nvd44xqwbrclwqx5rhs80l6809rcvpc7pkpgnij06cvvmcz"))))
|
"0splzd9w9yi42vl7b6mm99vb82jp2adhdrizw1xd4q125z0szp9y"))))
|
||||||
(build-system python-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
(list
|
||||||
(modify-phases %standard-phases
|
#:phases
|
||||||
|
'(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'disable-broken-tests
|
(add-after 'unpack 'disable-broken-tests
|
||||||
(lambda _
|
(lambda _
|
||||||
;; This test is broken as there is no keyboard interrupt.
|
;; The "wait_result" and "shared_memory..." tests are broken as
|
||||||
(substitute* "py3.7/multiprocess/tests/__init__.py"
|
;; there is no keyboard interrupt.
|
||||||
(("^(.*)def test_wait_result"
|
;;
|
||||||
line indent)
|
;; The "preload_resources" test fails as it cannot find
|
||||||
|
;; mp_preload.py.
|
||||||
|
(substitute* "py3.10/multiprocess/tests/__init__.py"
|
||||||
|
(("^(.*)def test_(\
|
||||||
|
wait_result|\
|
||||||
|
shared_memory_SharedMemoryServer_ignores_sigint|\
|
||||||
|
preload_resources\
|
||||||
|
)" line indent)
|
||||||
(string-append indent
|
(string-append indent
|
||||||
"@unittest.skip(\"Disabled by Guix\")\n"
|
"@unittest.skip(\"Disabled by Guix\")\n"
|
||||||
line)))
|
line)))))
|
||||||
#t))
|
(replace 'check
|
||||||
;; Tests must be run after installation.
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
(delete 'check)
|
(when tests?
|
||||||
(add-after 'install 'check
|
(invoke "python" "-m" "multiprocess.tests")))))))
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
||||||
(add-installed-pythonpath inputs outputs)
|
|
||||||
(invoke "python" "-m" "multiprocess.tests")
|
|
||||||
#t)))))
|
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list python-dill))
|
(list python-dill))
|
||||||
(home-page "https://pypi.org/project/multiprocess/")
|
(home-page "https://pypi.org/project/multiprocess/")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue