gnu: python-cleanlab: Disable test_aux_inputs, enable other tests.

* gnu/packages/machine-learning.scm (python-cleanlab)[arguments]: Remove
'disable-bad-tests phase and ignore test files in #:test-flags instead;
disable test_aux_inputs test, but re-enable tests from
test_multilabel_classification.py.
[native-inputs]: Add python-pytest-lazy-fixture.

Change-Id: I77a16768ff61215e918c98bccd3efa216fb30d7f
This commit is contained in:
Ricardo Wurmus 2024-01-09 10:33:48 +01:00
parent 447876fa0d
commit 2c94760dcb
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -1928,16 +1928,14 @@ (define-public python-cleanlab
(build-system pyproject-build-system)
(arguments
(list
#:phases
'(modify-phases %standard-phases
(add-after 'unpack 'disable-bad-tests
(lambda _
;; XXX This requires pytest lazy_fixture
(delete-file "tests/test_multilabel_classification.py")
;; Requires tensorflow
(delete-file "tests/test_frameworks.py")
#:test-flags
;; This test fails because the newer version of scikit learn returns one
;; more classification result than expected. This should be harmless.
'(list "-k" "not test_aux_inputs"
;; Requires Tensorflow
"--ignore=tests/test_frameworks.py"
;; Tries to download datasets from the internet at runtime.
(delete-file "tests/test_dataset.py"))))))
"--ignore=tests/test_dataset.py")))
(propagated-inputs
(list python-numpy
python-pandas
@ -1946,6 +1944,7 @@ (define-public python-cleanlab
python-tqdm))
(native-inputs
(list python-pytest
python-pytest-lazy-fixture
python-pytorch
python-torchvision))
(home-page "https://cleanlab.ai")