From 078934bdd4556cf19da728bd49608d7792b533f1 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Mon, 15 Nov 2021 11:46:23 +0000 Subject: gnu: python-scipy: Run tests conditionally. * gnu/packages/python-science.scm (python-scipy)[arguments]: Respect TESTS? in 'CHECK phase. --- gnu/packages/python-science.scm | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'gnu/packages/python-science.scm') diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index b68a2838fc..ef7ae2b0a1 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -160,11 +160,12 @@ atlas_libs = openblas ;; 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 -- cgit v1.2.3