gnu: python-traittypes: Fix tests.

* gnu/packages/python-science.scm (python-traittypes)[arguments]: Add phase
'numpy-compatibility.

Change-Id: I41d55d65d0dafd44029de38b3044d9fad378db50
This commit is contained in:
Ricardo Wurmus 2024-12-29 12:16:13 +01:00
parent 74e9204087
commit 32c3eb8b5b
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -3143,7 +3143,13 @@ (define-public python-traittypes
(arguments
(list
;; This one test fails because it doesn't raise an expected exception.
#:test-flags #~(list "-k" "not test_bad_values")))
#:test-flags '(list "-k" "not test_bad_values")
#:phases
'(modify-phases %standard-phases
(add-after 'unpack 'numpy-compatibility
(lambda _
(substitute* "traittypes/tests/test_traittypes.py"
(("np\\.int") "int")))))))
(propagated-inputs (list python-traitlets))
(native-inputs
(list python-numpy