summaryrefslogtreecommitdiff
path: root/gnu/packages/python-xyz.scm
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-02-19 17:23:47 +0100
committerAndreas Enge <andreas@enge.fr>2025-04-16 11:46:13 +0200
commitd6de00627e787b636bf486957338bc88c70f72b2 (patch)
tree448629a07e39f661e2f496065eb4adf781f6499a /gnu/packages/python-xyz.scm
parentf5ace3d1641422e7af901fca5e83310da39f49a6 (diff)
gnu: python-multiprocess: Update to 0.70.17.
* gnu/packages/python-xyz.scm (python-multiprocess): Update to 0.70.17. [arguments]{phases}: Use gexps. Remove phase 'disable-broken-tests. Improve phase 'check. Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r--gnu/packages/python-xyz.scm42
1 files changed, 23 insertions, 19 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 8308ba47ae..ef8faafad0 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -30589,39 +30589,43 @@ the saved state of the original interpreter session.")
(define-public python-multiprocess
(package
(name "python-multiprocess")
- (version "0.70.14")
+ (version "0.70.17")
(source
(origin
(method url-fetch)
(uri (pypi-uri "multiprocess" version))
(sha256
(base32
- "0splzd9w9yi42vl7b6mm99vb82jp2adhdrizw1xd4q125z0szp9y"))))
+ "0ypm9yj1ng1s96hk2iwll190dkpc2j5zras8kay9x00n6hdg3qja"))))
(build-system pyproject-build-system)
(arguments
(list
#:phases
- '(modify-phases %standard-phases
- (add-after 'unpack 'disable-broken-tests
- (lambda _
- ;; The "wait_result" and "shared_memory..." tests are broken as
- ;; there is no keyboard interrupt.
- ;;
- ;; The "preload_resources" test fails as it cannot find
- ;; mp_preload.py.
- (substitute* "py3.10/multiprocess/tests/__init__.py"
- (("^(.*)def test_(\
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'disable-broken-tests
+ (lambda* (#:key inputs #:allow-other-keys)
+ ;; The "wait_result" and "shared_memory..." tests are broken as
+ ;; there is no keyboard interrupt.
+ ;;
+ ;; The "preload_resources" test fails as it cannot find
+ ;; mp_preload.py.
+ (substitute*
+ (string-append "py" (python-version
+ (assoc-ref inputs "python"))
+ "/multiprocess/tests/__init__.py")
+ (("^(.*)def test_(\
wait_result|\
shared_memory_SharedMemoryServer_ignores_sigint|\
preload_resources\
)" line indent)
- (string-append indent
- "@unittest.skip(\"Disabled by Guix\")\n"
- line)))))
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (invoke "python" "-m" "multiprocess.tests")))))))
+ (string-append indent
+ "@unittest.skip(\"Disabled by Guix\")\n"
+ line)))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (if tests?
+ (invoke "python" "-m" "multiprocess.tests")
+ (format #t "test suite not run~%")))))))
(propagated-inputs
(list python-dill))
(native-inputs (list python-setuptools python-wheel))