From 03a9ee6f88f73948bd5fbfdd35c102de8d2ceb7d Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Sun, 29 Dec 2024 12:16:13 +0100 Subject: [PATCH] gnu: python-traittypes: Fix tests. * gnu/packages/python-science.scm (python-traittypes)[arguments]: Add phase 'numpy-compatibility. Change-Id: I41d55d65d0dafd44029de38b3044d9fad378db50 --- gnu/packages/python-science.scm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index 36894f000a..6b0b70a1b8 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -3144,7 +3144,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