rekado pushed a commit to branch python-team
in repository guix.
commit fb9ed8c416ecc53ed969a13dc8c87c9372ca3216
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Mon Feb 10 20:39:45 2025 +0000
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
---
gnu/packages/python-science.scm | 39 +++++++++++++++++++++++++++++----------
1 file changed, 29 insertions(+), 10 deletions(-)
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index 9f4beb6dbe..8119c624af 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -3666,18 +3666,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