rekado pushed a commit to branch wip-python-team
in repository guix.

commit 360f9ea421a4e286f223fa635e5a715b3c9709f1
Author: Ricardo Wurmus <[email protected]>
AuthorDate: Thu May 2 23:01:14 2024 +0200

    gnu: python-cleanlab: Update to 2.6.3.
    
    * gnu/packages/machine-learning.scm (python-cleanlab): Update to 2.6.3.
    [arguments]: Disable tests that require "datasets" package; add phase
    'remove-datasets.
    
    Change-Id: I6af99e3e749a10515328db4874974a3504658352
---
 gnu/packages/machine-learning.scm | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/machine-learning.scm 
b/gnu/packages/machine-learning.scm
index dc6d292288..39b3a36b65 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -2054,7 +2054,7 @@ standard feature selection algorithms.")
 (define-public python-cleanlab
   (package
     (name "python-cleanlab")
-    (version "2.2.0")
+    (version "2.6.3")
     ;; The version on pypi does not come with tests.
     (source (origin
               (method git-fetch)
@@ -2064,7 +2064,7 @@ standard feature selection algorithms.")
               (file-name (git-file-name name version))
               (sha256
                (base32
-                "00dqhxpwg781skknw943ynll2s44g4j125dx8aapk1d5d71sbzqy"))))
+                "1f5iq4f8rzvn8scrwgfvc9qaqs9h159wiiy7wp6526frr67xk918"))))
     (build-system pyproject-build-system)
     (arguments
      (list
@@ -2074,8 +2074,16 @@ standard feature selection algorithms.")
       '(list "-k" "not test_aux_inputs"
              ;; Requires Tensorflow
              "--ignore=tests/test_frameworks.py"
+             ;; These need datasets, which needs jax, so it could only live in
+             ;; the guix-science channel.
+             "--ignore-glob=tests/datalab/**"
              ;; Tries to download datasets from the internet at runtime.
-             "--ignore=tests/test_dataset.py")))
+             "--ignore=tests/test_dataset.py")
+      #:phases
+      '(modify-phases %standard-phases
+         (add-after 'unpack 'remove-datasets
+           (lambda _
+             (delete-file "tests/datalab/conftest.py"))))))
     (propagated-inputs
      (list python-numpy
            python-pandas

Reply via email to