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