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 @@ compliance.")
`(#:phases `(#:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(replace 'check (replace 'check
(lambda _ (lambda* (#:key tests? #:allow-other-keys)
(invoke "pytest")))))) (when tests?
(invoke "pytest")))))))
(propagated-inputs (propagated-inputs
`(("python-isort" ,python-isort) `(("python-isort" ,python-isort)
("python-pytest" ,python-pytest))) ("python-pytest" ,python-pytest)))