[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/02: gnu: python-docopt: Honor #:tests? in check phase.
From: |
guix-commits |
Subject: |
02/02: gnu: python-docopt: Honor #:tests? in check phase. |
Date: |
Mon, 9 Aug 2021 03:13:40 -0400 (EDT) |
efraim pushed a commit to branch core-updates-frozen
in repository guix.
commit d418784dbdce5d920cb385665d26a5d8427f4cc9
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Mon Aug 9 10:02:02 2021 +0300
gnu: python-docopt: Honor #:tests? in check phase.
* gnu/packages/python-xyz.scm (python-docopt)[arguments]: In custom
'check phase honor #:tests?.
---
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 0890792..95245ec 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -11572,7 +11572,9 @@ automatically detect a wide range of file encodings.")
`(#:phases
(modify-phases %standard-phases
(replace 'check
- (lambda _ (invoke "py.test"))))))
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "py.test")))))))
(home-page "http://docopt.org")
(synopsis "Command-line interface description language for Python")
(description "This library allows the user to define a command-line