3
5
Fork 0
mirror of git://git.savannah.gnu.org/guix.git synced 2023-12-14 03:33:07 +01:00

gnu: python-pytest-pep8: Fix package.

* gnu/packages/check.scm (python-pytest-pep8)[arguments]: Remove
dependency on pytest-cache and add proper 'check phase.
This commit is contained in:
Lars-Dominik Braun 2021-01-07 13:35:11 +01:00 committed by Maxim Cournoyer
parent da3c8e53c4
commit 355d87a0a5
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -1985,7 +1985,18 @@ failures.")
"06032agzhw1i9d9qlhfblnl3dw5hcyxhagn7b120zhrszbjzfbh3"))))
(build-system python-build-system)
(arguments
`(#:tests? #f)) ; Fails with recent pytest and pep8. See upstream issues #8 and #12.
`(#:tests? #f ; Fails with recent pytest and pep8. See upstream issues #8 and #12.
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'fix-dependencies
(lambda _
(substitute* "setup.py"
(("'pytest-cache', ") "")))) ; Included in recent pytest
(replace 'check
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
(when tests?
(add-installed-pythonpath inputs outputs)
(invoke "pytest" "-v")))))))
(native-inputs
`(("python-pytest" ,python-pytest)))
(propagated-inputs