diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-02-10 20:39:45 +0000 |
|---|---|---|
| committer | Andreas Enge <andreas@enge.fr> | 2025-04-16 11:46:12 +0200 |
| commit | c8bd224e07d6254780ba8e1b1c78755cd22250ee (patch) | |
| tree | d60e66b6665d08321533ecdc38037cb3df63ff40 /gnu/packages | |
| parent | 6abfc4a723200a160dd656e9b5191c040f3ee14d (diff) | |
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
Diffstat (limited to 'gnu/packages')
| -rw-r--r-- | gnu/packages/python-science.scm | 39 |
1 files changed, 29 insertions, 10 deletions
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index abadb45c796..0cdf23dfa8d 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -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 |
