From 12c529c071762dc80ef0439a1c94422cfa26af57 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Mon, 8 May 2023 12:39:20 +0300 Subject: gnu: python-bottleneck: Honor #:tests? flag. * gnu/packages/python-science.scm (python-bottleneck)[arguments]: Adjust custom 'check phase to honor the #:tests? flag. --- gnu/packages/python-science.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index ef9f672f1f..c9f122c5c9 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -580,8 +580,9 @@ Python module with the same interface, but (hopefully) faster.") `(#:phases (modify-phases %standard-phases (replace 'check - (lambda _ - (invoke "python" "setup.py" "pytest")))))) + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "python" "setup.py" "pytest"))))))) (native-inputs (list python-hypothesis python-pytest python-pytest-runner)) (propagated-inputs -- cgit v1.2.3