From e61874a5983c4fcb39b33248d044f22257e2f189 Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Mon, 28 Jun 2021 17:40:04 -0400 Subject: gnu: python-fire: Respect #:tests? * gnu/packages/python-xyz.scm (python-fire)[arguments]: Respect #:tests? in the custom 'check' phase. --- gnu/packages/python-xyz.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gnu/packages') diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 41761d8b7a..f0fbe91b73 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -276,7 +276,9 @@ workspaces. '(#:phases (modify-phases %standard-phases (replace 'check - (lambda _ (invoke "pytest")))))) + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest"))))))) (inputs `(("python-six", python-six) ("python-termcolor", python-termcolor))) -- cgit v1.2.3