mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 15:36:20 -05:00
gnu: python-scipy: Run tests conditionally.
* gnu/packages/python-science.scm (python-scipy)[arguments]: Respect TESTS? in 'CHECK phase.
This commit is contained in:
parent
373d2099c9
commit
078934bdd4
1 changed files with 6 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue