diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index d5ad05f4d9..f4ae6a7e62 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -10366,13 +10366,14 @@ (define-public python-flake8-polyfill '(#:phases (modify-phases %standard-phases (replace 'check - (lambda _ + (lambda* (#:key tests? #:allow-other-keys) ;; Be compatible with Pytest 4: ;; https://gitlab.com/pycqa/flake8-polyfill/merge_requests/7 (substitute* "setup.cfg" (("\\[pytest\\]") "[tool:pytest]")) - (invoke "py.test" "-v")))))) + (when tests? + (invoke "py.test" "-v"))))))) (propagated-inputs (list python-flake8)) (native-inputs