diff options
| author | Ricardo Wurmus <rekado@elephly.net> | 2024-12-29 12:16:13 +0100 |
|---|---|---|
| committer | Ricardo Wurmus <rekado@elephly.net> | 2025-01-20 21:37:28 +0100 |
| commit | 1fd5f283060ff205bc20a8418da99a598f5bfe44 (patch) | |
| tree | c4b447d06c456ef8ce0a4ebd12b28f937c6cb570 /gnu | |
| parent | ac6167bc561f5513dbfdb3d5b216548f2f1f96a9 (diff) | |
gnu: python-traittypes: Fix tests.
* gnu/packages/python-science.scm (python-traittypes)[arguments]: Add phase
'numpy-compatibility.
Change-Id: I41d55d65d0dafd44029de38b3044d9fad378db50
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/python-science.scm | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index ec03e35b85a..ff9a796c83e 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm | |||
| @@ -3143,7 +3143,13 @@ to do spectral analysis in Python.") | |||
| 3143 | (arguments | 3143 | (arguments |
| 3144 | (list | 3144 | (list |
| 3145 | ;; This one test fails because it doesn't raise an expected exception. | 3145 | ;; This one test fails because it doesn't raise an expected exception. |
| 3146 | #:test-flags #~(list "-k" "not test_bad_values"))) | 3146 | #:test-flags '(list "-k" "not test_bad_values") |
| 3147 | #:phases | ||
| 3148 | '(modify-phases %standard-phases | ||
| 3149 | (add-after 'unpack 'numpy-compatibility | ||
| 3150 | (lambda _ | ||
| 3151 | (substitute* "traittypes/tests/test_traittypes.py" | ||
| 3152 | (("np\\.int") "int"))))))) | ||
| 3147 | (propagated-inputs (list python-traitlets)) | 3153 | (propagated-inputs (list python-traitlets)) |
| 3148 | (native-inputs | 3154 | (native-inputs |
| 3149 | (list python-numpy | 3155 | (list python-numpy |
