[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/03: gnu: python-fire: Respect #:tests?
From: |
guix-commits |
Subject: |
03/03: gnu: python-fire: Respect #:tests? |
Date: |
Mon, 28 Jun 2021 17:48:08 -0400 (EDT) |
raghavgururajan pushed a commit to branch master
in repository guix.
commit e61874a5983c4fcb39b33248d044f22257e2f189
Author: Raghav Gururajan <rg@raghavgururajan.name>
AuthorDate: Mon Jun 28 17:40:04 2021 -0400
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(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 41761d8..f0fbe91 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)))