gnu: python-flask: Honor #:tests in check phase.

* gnu/packages/python-web.scm (python-flask)[arguments]: Honor #:tests flag.
This commit is contained in:
Efraim Flashner 2021-08-09 13:00:26 +03:00
parent 60c9828933
commit 830a47e85d
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -2943,8 +2943,9 @@ (define-public python-flask
'(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
(invoke "pytest" "-vv" "tests"))))))
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "-vv" "tests")))))))
(native-inputs
`(("python-pytest" ,python-pytest)))
(propagated-inputs