diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index b160996756..5223f5a73e 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -20751,8 +20751,9 @@ (define-public python-identify ;; system-error "utime" "~A" ("No such file or directory") (delete 'ensure-no-mtimes-pre-1980) (replace 'check - (lambda _ - (invoke "pytest" "-vv")))))) + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest" "-vv"))))))) (native-inputs `(("python-coverage" ,python-coverage) ("python-pytest" ,python-pytest)))