gnu: python-pytest-isort: Honor #:tests in check phase.

* gnu/packages/python-check.scm (python-pytest-isort)[arguments]: Honor
 #:tests flag.
This commit is contained in:
Efraim Flashner 2021-08-09 14:17:46 +03:00
parent b8295d2529
commit c94d42d951
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

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