gnu: python-hdmedians: Adjust test backend.

* gnu/packages/statistics.scm (python-hdmedians) [arguments]
<test-flags>: Provide "--pyargs" option to tests against compiled
module.
<phases>: Remove 'build-extensions.
[native-inputs]: Remove python-nose; add python-pytest.

Change-Id: Iac0096cceec48d560e3a3e7d93d0ad8915377014
This commit is contained in:
Sharlatan Hellseher 2025-06-26 00:16:48 +01:00
parent ac4084c028
commit e5536416c8
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -1104,15 +1104,14 @@ correlated samples from Markov Chain Monte Carlo (MCMC).")
(build-system pyproject-build-system) (build-system pyproject-build-system)
(arguments (arguments
(list (list
#:phases #:test-flags #~(list "--pyargs" "hdmedians")))
'(modify-phases %standard-phases (native-inputs
(add-before 'check 'build-extensions (list python-pytest))
(lambda _ (propagated-inputs
;; Cython extensions have to be built before running the tests. (list python-cython
(invoke "python" "setup.py" "build_ext" "--inplace")))))) python-numpy
(propagated-inputs (list python-cython python-numpy python-setuptools python-setuptools
python-wheel)) python-wheel))
(native-inputs (list python-nose))
(home-page "http://github.com/daleroberts/hdmedians") (home-page "http://github.com/daleroberts/hdmedians")
(synopsis "High-dimensional medians") (synopsis "High-dimensional medians")
(description "Various definitions for a high-dimensional median exist and (description "Various definitions for a high-dimensional median exist and