diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index fdc3aa5c51..10f38d8777 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -2943,8 +2943,9 @@ (define-public python-flask '(#:phases (modify-phases %standard-phases (replace 'check - (lambda _ - (invoke "pytest" "-vv" "tests")))))) + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest" "-vv" "tests"))))))) (native-inputs `(("python-pytest" ,python-pytest))) (propagated-inputs