From: Vinicius Monego <monego@posteo.net>
To: 48263@debbugs.gnu.org
Cc: Vinicius Monego <monego@posteo.net>
Subject: [bug#48263] [PATCH v2 3/3] gnu: hypercorn: Honor #:tests? in 'check' phase.
Date: Sat, 30 Oct 2021 17:30:48 +0000 [thread overview]
Message-ID: <20211030173048.53815-3-monego@posteo.net> (raw)
In-Reply-To: <20211030173048.53815-1-monego@posteo.net>
* gnu/packages/python-web.scm (hypercorn)[arguments]: Honor #:tests? in
'check' phase.
---
gnu/packages/python-web.scm | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 287574301d..204059a08a 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -1630,9 +1630,10 @@ RFC6455, regardless of your programming paradigm.")
`(#:phases
(modify-phases %standard-phases
(replace 'check
- (lambda* (#:key inputs outputs #:allow-other-keys)
- (add-installed-pythonpath inputs outputs)
- (invoke "pytest" "-vv"))))))
+ (lambda* (#:key inputs outputs tests? #:allow-other-keys)
+ (when tests?
+ (add-installed-pythonpath inputs outputs)
+ (invoke "python" "-m" "pytest")))))))
;; Propagate because Hypercorn also exposes functionality over a module.
(propagated-inputs
`(("python-h11" ,python-h11)
--
2.30.2
next prev parent reply other threads:[~2021-10-30 18:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-06 19:17 [bug#48263] [PATCH 1/2] gnu: python-hypercorn: Rename to hypercorn Vinicius Monego
2021-05-06 19:20 ` [bug#48263] [PATCH 2/2] gnu: hypercorn: Update to 0.11.2 Vinicius Monego
2021-10-30 17:30 ` [bug#48263] [PATCH v2 1/3] gnu: python-hypercorn: Remove "python-" prefix from name Vinicius Monego
2021-10-30 17:30 ` [bug#48263] [PATCH v2 2/3] gnu: hypercorn: Update to 0.11.2 Vinicius Monego
2021-10-30 17:30 ` Vinicius Monego [this message]
2021-11-08 20:38 ` bug#48263: [PATCH v2 1/3] gnu: python-hypercorn: Remove "python-" prefix from name Efraim Flashner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211030173048.53815-3-monego@posteo.net \
--to=monego@posteo.net \
--cc=48263@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.