[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#51314] [PATCH 08/29] gnu: python-flask: Respect #:tests?.
From: |
Vinicius Monego |
Subject: |
[bug#51314] [PATCH 08/29] gnu: python-flask: Respect #:tests?. |
Date: |
Thu, 21 Oct 2021 04:01:39 +0000 |
* gnu/packages/python-web.scm (python-flask)[arguments]<#:phases>: Respect
#:tests? in the custom 'check phase and simplify it.
---
gnu/packages/python-web.scm | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 67128d1b18..8dd3345daf 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -2981,13 +2981,13 @@ minimum of WSGI.")
"15ni4xlm57a15f5hipp8w0c9zba20179bvfns2392fiq1lcbdghg"))))
(build-system python-build-system)
(arguments
- '(#:phases
+ `(#:phases
(modify-phases %standard-phases
(replace 'check
- (lambda _
- (setenv "PYTHONPATH" (string-append "./build/lib:"
- (getenv "PYTHONPATH")))
- (invoke "pytest" "-vv" "tests"))))))
+ (lambda* (#:key inputs outputs tests? #:allow-other-keys)
+ (when tests?
+ (add-installed-pythonpath inputs outputs)
+ (invoke "python" "-m" "pytest")))))))
(native-inputs
`(("python-pytest" ,python-pytest)))
(propagated-inputs
--
2.30.2
- [bug#51314] [PATCH 10/29] gnu: Add python-flask-assets., (continued)
- [bug#51314] [PATCH 10/29] gnu: Add python-flask-assets., Vinicius Monego, 2021/10/21
- [bug#51314] [PATCH 12/29] gnu: Add python-executing., Vinicius Monego, 2021/10/21
- [bug#51314] [PATCH 19/29] gnu: python-websocket-client: Update to 0.59.0., Vinicius Monego, 2021/10/21
- [bug#51314] [PATCH 20/29] gnu: python-pkginfo: Update to 1.7.1., Vinicius Monego, 2021/10/21
- [bug#51314] [PATCH 06/29] gnu: Add python-pylru., Vinicius Monego, 2021/10/21
- [bug#51314] [PATCH 09/29] gnu: Add python-pyscss., Vinicius Monego, 2021/10/21
- [bug#51314] [PATCH 22/29] gnu: python-colorlog: Update to 5.0.1., Vinicius Monego, 2021/10/21
- [bug#51314] [PATCH 21/29] gnu: python-watchdog: Update to 0.10.7., Vinicius Monego, 2021/10/21
- [bug#51314] [PATCH 15/29] gnu: Add python-sgmllib3k., Vinicius Monego, 2021/10/21
- [bug#51314] [PATCH 16/29] gnu: python-feedparser: Update to 6.0.8., Vinicius Monego, 2021/10/21
- [bug#51314] [PATCH 08/29] gnu: python-flask: Respect #:tests?.,
Vinicius Monego <=
- [bug#51314] [PATCH 18/29] gnu: python-netifaces: Update to 0.11.0., Vinicius Monego, 2021/10/21
- [bug#51314] [PATCH 07/29] gnu: python-flask: Update to 1.1.4., Vinicius Monego, 2021/10/21
- [bug#51314] [PATCH 11/29] gnu: Add python-zipstream-new., Vinicius Monego, 2021/10/21
- [bug#51314] [PATCH 23/29] gnu: python-zeroconf: Update to 0.33.4., Vinicius Monego, 2021/10/21
- [bug#51314] [PATCH 24/29] gnu: python-wrapt: Update to 1.12.1., Vinicius Monego, 2021/10/21
- [bug#51314] [PATCH 26/29] gnu: Add octoprint-pisupport., Vinicius Monego, 2021/10/21
- [bug#51314] [PATCH 25/29] gnu: python-wrapt: Enable tests., Vinicius Monego, 2021/10/21
- [bug#51314] [PATCH 29/29] gnu: Add octoprint., Vinicius Monego, 2021/10/21
- [bug#51314] [PATCH 27/29] gnu: Add octoprint-firmwarecheck., Vinicius Monego, 2021/10/21
- [bug#51314] [PATCH 28/29] gnu: Add octoprint-filecheck., Vinicius Monego, 2021/10/21