[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/04: gnu: python-asgiref: Honor #:tests? flag.
From: |
guix-commits |
Subject: |
03/04: gnu: python-asgiref: Honor #:tests? flag. |
Date: |
Wed, 27 Oct 2021 13:39:43 -0400 (EDT) |
efraim pushed a commit to branch core-updates-frozen
in repository guix.
commit 013c061ce55359a0f56599490ecd462243386df6
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Wed Oct 27 19:40:36 2021 +0300
gnu: python-asgiref: Honor #:tests? flag.
* gnu/packages/python-web.scm (python-asgiref)[arguments]: Adjust custom
'check phase to honor the #:tests? flag.
---
gnu/packages/python-web.scm | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 444f043..55d2721 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -327,10 +327,12 @@ comes with a SOCKS proxy client.")
(base32
"1saqgpgbdvb8awzm0f0640j0im55hkrfzvcw683cgqw4ni3apwaf"))))
(build-system python-build-system)
(arguments
- '(#:phases (modify-phases %standard-phases
- (replace 'check
- (lambda _
- (invoke "pytest" "-vv"))))))
+ '(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "pytest" "-vv")))))))
(native-inputs
`(("python-pytest" ,python-pytest)
("python-pytest-asyncio" ,python-pytest-asyncio)))