gnu: python-scipy: Run tests conditionally.

* gnu/packages/python-science.scm (python-scipy)[arguments]: Respect TESTS? in
'CHECK phase.
This commit is contained in:
Ricardo Wurmus 2021-11-15 11:46:23 +00:00
parent 373d2099c9
commit 078934bdd4
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -160,11 +160,12 @@ (define-public python-scipy
;; within the source directory.
(delete 'check)
(add-after 'install 'check
(lambda* (#:key inputs outputs #:allow-other-keys)
(add-installed-pythonpath inputs outputs)
(with-directory-excursion "/tmp"
(invoke "python" "-c"
"import scipy; scipy.test(verbose=2)")))))))
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
(when tests?
(add-installed-pythonpath inputs outputs)
(with-directory-excursion "/tmp"
(invoke "python" "-c"
"import scipy; scipy.test(verbose=2)"))))))))
(home-page "https://www.scipy.org/")
(synopsis "The Scipy library provides efficient numerical routines")
(description "The SciPy library is one of the core packages that make up