gnu: python-traittypes: Simplify package.

* gnu/packages/python-science.scm (python-traittypes) [build-system]:
Swap to pyproject-build-system.
[arguments]: Move excluded tests to <#:test-flags>. Use standard 'check
phase.

Change-Id: I4cab0c94036a7e5f0851edf2833dfac2f675d2a0
This commit is contained in:
Sharlatan Hellseher 2024-02-06 21:11:40 +00:00
parent 5dee582c13
commit 5729b2b352
No known key found for this signature in database
GPG Key ID: 76D727BFF62CD2B5

View File

@ -2153,16 +2153,11 @@ to do spectral analysis in Python.")
(uri (pypi-uri "traittypes" version))
(sha256
(base32 "1mlv93irdrgxrhnhq3ksi9585d55bpi4mv9dha4p8gkkjiia4vxy"))))
(build-system python-build-system)
(build-system pyproject-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
;; This one test fails because it doesn't raise an expected
;; exception.
(invoke "pytest" "-vv" "-k" "not test_bad_values")))))))
(list
;; This one test fails because it doesn't raise an expected exception.
#:test-flags #~(list "-k" "not test_bad_values")))
(propagated-inputs (list python-traitlets))
(native-inputs
(list python-numpy