Subject: [bug#74580] [PATCH 14/14] gnu: python-joblib: Update to 1.4.2.

From: Nicolas Graves <[email-masked]>
Date: Thu, 28 Nov 2024 08:52:26 +0100

* gnu/packages/python-xyz.scm (python-joblib): Update to 1.4.2.
[arguments]<#:test-flags>: Add --numprocesses flag.
[native-inputs]: Add python-pytest-xdist.
---
 gnu/packages/python-xyz.scm | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index cf0d423a95..322fb902d5 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -6889,19 +6889,22 @@ (define-public python-pystitcher
 (define-public python-joblib
   (package
     (name "python-joblib")
-    (version "1.3.2")
+    (version "1.4.2")
     (source (origin
               (method url-fetch)
               (uri (pypi-uri "joblib" version))
               (sha256
                (base32
-                "1cbjjzsh9hzaqr2cqja95673p7j88b8bd02hjpkq8xz147k6by4j"))))
+                "03izdcvc3fa355cclzgvzmjnfwylvblz9q091b9gndi6df0wb0i3"))))
     (build-system pyproject-build-system)
     (arguments
      (list
       #:test-flags  ; disabled to avoid having to depend on ipython/jupyter
-      #~(list "-k" "not test_parallel_call_cached_function_defined_in_jupyter")))
-    (native-inputs (list python-pytest python-setuptools python-wheel))
+      #~(list
+         "--numprocesses" (number->string (parallel-job-count))
+         "-k" "not test_parallel_call_cached_function_defined_in_jupyter")))
+    (native-inputs
+     (list python-pytest python-pytest-xdist python-setuptools python-wheel))
     (propagated-inputs (list python-psutil))
     (home-page "https://joblib.readthedocs.io/")
     (synopsis "Using Python functions as pipeline jobs")
@@ -6912,7 +6915,6 @@ (define-public python-joblib
 logging and tracing of the execution.")
     (license license:bsd-3)))
 
-
 (define-public python-daemon
   (package
     (name "python-daemon")
-- 
2.46.0