gnu: python-paramz: Fix tests.

* gnu/packages/python-science.scm (python-paramz)
[arguments] <test-flags>: Make them compatible with Pytest to allow some
adjustments.
[native-inputs]: Remove python-nose; add python-pytest.

Change-Id: I66fbd374ce30e80f02fe43784740389a33783011
This commit is contained in:
Sharlatan Hellseher 2025-02-10 20:39:45 +00:00 committed by Andreas Enge
parent 6abfc4a723
commit c8bd224e07
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3

View file

@ -3794,18 +3794,37 @@ it can be used for displaying many qualitatively different samples.")
(package
(name "python-paramz")
(version "0.9.6")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/sods/paramz")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"1ywc2jzj40m6wmq227j3snxvp4434s0m1xk1abg6v6mr87pv2sa9"))))
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/sods/paramz")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1ywc2jzj40m6wmq227j3snxvp4434s0m1xk1abg6v6mr87pv2sa9"))))
(build-system pyproject-build-system)
(arguments
(list
#:test-flags
#~(list "-k"
;; Two tests fail with error: TypeError: arrays to stack must be
;; passed as a "sequence" type such as list or tuple.
(string-append "not test_raveled_index"
" and not test_regular_expression_misc")
"paramz/tests/array_core_tests.py"
"paramz/tests/cacher_tests.py"
"paramz/tests/examples_tests.py"
"paramz/tests/index_operations_tests.py"
"paramz/tests/init_tests.py"
"paramz/tests/lists_and_dicts_tests.py"
"paramz/tests/model_tests.py"
"paramz/tests/observable_tests.py"
"paramz/tests/parameterized_tests.py"
"paramz/tests/pickle_tests.py"
"paramz/tests/verbose_optimize_tests.py")))
(native-inputs
(list python-nose
(list python-pytest
python-setuptools
python-wheel))
(propagated-inputs