gnu: python-numba: Run tests conditionally.

* gnu/packages/python-xyz.scm (python-numba)[arguments]: Respect TESTS? argument.
This commit is contained in:
Ricardo Wurmus 2021-11-20 01:01:40 +01:00
parent 40d4b541d9
commit bcf7d0bc7b
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -22008,14 +22008,15 @@ (define-public python-numba
(setenv "NUMBA_DISABLE_HSA" "1")
(setenv "NUMBA_DISABLE_CUDA" "1")))
(replace 'check
(lambda* (#:key inputs outputs #:allow-other-keys)
(add-installed-pythonpath inputs outputs)
;; Something is wrong with the PYTHONPATH when running the
;; tests from the build directory, as it complains about not being
;; able to import certain modules.
(with-directory-excursion "/tmp"
(setenv "HOME" (getcwd))
(invoke "python3" "-m" "numba.runtests" "-v" "-m")))))))
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
(when tests?
(add-installed-pythonpath inputs outputs)
;; Something is wrong with the PYTHONPATH when running the
;; tests from the build directory, as it complains about not being
;; able to import certain modules.
(with-directory-excursion "/tmp"
(setenv "HOME" (getcwd))
(invoke "python3" "-m" "numba.runtests" "-v" "-m"))))))))
(propagated-inputs
`(("python-llvmlite" ,python-llvmlite)
("python-numpy" ,python-numpy)