gnu: python-bottleneck: Honor #:tests? flag.

* gnu/packages/python-science.scm (python-bottleneck)[arguments]: Adjust
custom 'check phase to honor the #:tests? flag.
This commit is contained in:
Efraim Flashner 2023-05-08 12:39:20 +03:00
parent 4a23812c7c
commit 12c529c071
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -580,8 +580,9 @@ (define-public python-bottleneck
`(#: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