From fa51fe801f55a813478dc6abac7b3a86df6c24c2 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 14 Dec 2025 16:58:15 +0000 Subject: [PATCH] gnu: python-cleanlab: Fix build. * gnu/packages/machine-learning.scm (python-cleanlab)[arguments] : Skip one more test. : Add 'relax-requirements. [native-inputs]: Remove python-wheel; add python-matplotlib. Change-Id: I10e9d8a2eadc2de6d26f6247dc5e2305a215bd91 Signed-off-by: Rutherther --- gnu/packages/machine-learning.scm | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm index b55e9dc292310de2cc47345ada7b6ff04a4d632b..e25ebcd0adb17b76026b846551f9149eb24916f5 100644 --- a/gnu/packages/machine-learning.scm +++ b/gnu/packages/machine-learning.scm @@ -2461,6 +2461,7 @@ standard feature selection algorithms.") (build-system pyproject-build-system) (arguments (list + ;; tests: 616 passed, 3 deselected, 99 warnings #:test-flags ;; This test fails because the newer version of scikit learn returns one ;; more classification result than expected. This should be harmless. @@ -2474,9 +2475,19 @@ standard feature selection algorithms.") "--ignore=tests/test_dataset.py" ;; Test requiring not packaged dataset. "--ignore=tests/spurious_correlation/test_correlation_visualizer.py" - "--ignore=tests/spurious_correlation/test_spurious_correlation.py") + "--ignore=tests/spurious_correlation/test_spurious_correlation.py" + ;; AssertionError: assert 'Annotators [1] did not label any + ;; examples.' in 'labels_multiannotator cannot have columns with + ;; all NaN, each annotator must annotator at least one example. + "--deselect=tests/test_multiannotator.py::test_label_quality_scores_multiannotator") #:phases '(modify-phases %standard-phases + (add-after 'unpack 'relax-requirements + (lambda _ + (substitute* "pyproject.toml" + ;; See: and + ;; . + (("numpy~=1.22") "numpy>=1.22")))) (add-after 'unpack 'remove-datasets (lambda _ (delete-file "tests/datalab/conftest.py")))))) @@ -2488,12 +2499,12 @@ standard feature selection algorithms.") python-tqdm)) (native-inputs (list ;; python-dataset ; https://github.com/huggingface/datasets + python-matplotlib python-pytest python-pytorch python-setuptools python-torchvision - python-typing-extensions - python-wheel)) + python-typing-extensions)) (home-page "https://cleanlab.ai") (synopsis "Automatically find and fix dataset issues") (description