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)
(arguments
(list
#:phases
'(modify-phases %standard-phases
(add-before 'check 'build-extensions
(lambda _
;; Cython extensions have to be built before running the tests.
(invoke "python" "setup.py" "build_ext" "--inplace"))))))
(propagated-inputs (list python-cython python-numpy python-setuptools
python-wheel))
(native-inputs (list python-nose))
#:test-flags #~(list "--pyargs" "hdmedians")))
(native-inputs
(list python-pytest))
(propagated-inputs
(list python-cython
python-numpy
python-setuptools
python-wheel))
(home-page "http://github.com/daleroberts/hdmedians")
(synopsis "High-dimensional medians")
(description "Various definitions for a high-dimensional median exist and