gnu: python-flake8-polyfill: Honor tests? flag.
* gnu/packages/python-xyz.scm (python-flake8-polyfill)[arguments]: Adjust custom 'check phase to honor the #:tests? flag.
parent
49a47bdcc5
commit
0fd5222ad6
|
@ -10366,13 +10366,14 @@ unnecessary plus operators for explicit string literal concatenation.")
|
||||||
'(#:phases
|
'(#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda _
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
;; Be compatible with Pytest 4:
|
;; Be compatible with Pytest 4:
|
||||||
;; https://gitlab.com/pycqa/flake8-polyfill/merge_requests/7
|
;; https://gitlab.com/pycqa/flake8-polyfill/merge_requests/7
|
||||||
(substitute* "setup.cfg"
|
(substitute* "setup.cfg"
|
||||||
(("\\[pytest\\]")
|
(("\\[pytest\\]")
|
||||||
"[tool:pytest]"))
|
"[tool:pytest]"))
|
||||||
(invoke "py.test" "-v"))))))
|
(when tests?
|
||||||
|
(invoke "py.test" "-v")))))))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list python-flake8))
|
(list python-flake8))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
|
|
Reference in New Issue