[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#51314] [PATCH v2 04/24] gnu: python-flask: Respect #:tests?.
From: |
Vinicius Monego |
Subject: |
[bug#51314] [PATCH v2 04/24] gnu: python-flask: Respect #:tests?. |
Date: |
Sat, 13 Nov 2021 20:02:10 +0000 |
* gnu/packages/python-web.scm (python-flask)[arguments]<#:phases>: Respect
#:tests? and simplify the test command in the custom 'check phase.
---
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 0beaa78d0e..8dd73c003f 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -3006,13 +3006,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 v2 01/24] gnu: Add python-sarge., Vinicius Monego, 2021/11/13
- [bug#51314] [PATCH v2 02/24] gnu: Add python-pylru., Vinicius Monego, 2021/11/13
- [bug#51314] [PATCH v2 03/24] gnu: python-flask: Update to 1.1.4., Vinicius Monego, 2021/11/13
- [bug#51314] [PATCH v2 04/24] gnu: python-flask: Respect #:tests?.,
Vinicius Monego <=
- [bug#51314] [PATCH v2 07/24] gnu: Add python-zipstream-new., Vinicius Monego, 2021/11/13
- [bug#51314] [PATCH v2 05/24] gnu: Add python-pyscss., Vinicius Monego, 2021/11/13
- [bug#51314] [PATCH v2 06/24] gnu: Add python-flask-assets., Vinicius Monego, 2021/11/13
- [bug#51314] [PATCH v2 08/24] gnu: Add python-executing., Vinicius Monego, 2021/11/13
- [bug#51314] [PATCH v2 10/24] gnu: Add python-pytest-doctest-custom., Vinicius Monego, 2021/11/13
- [bug#51314] [PATCH v2 12/24] gnu: python-feedparser: Enable tests., Vinicius Monego, 2021/11/13
- [bug#51314] [PATCH v2 11/24] gnu: python-feedparser: Update to 6.0.8., Vinicius Monego, 2021/11/13
- [bug#51314] [PATCH v2 09/24] gnu: Add python-sentry-sdk., Vinicius Monego, 2021/11/13
- [bug#51314] [PATCH v2 15/24] gnu: python-pkginfo: Update to 1.7.1., Vinicius Monego, 2021/11/13
- [bug#51314] [PATCH v2 14/24] gnu: python-websocket-client: Update to 0.59.0., Vinicius Monego, 2021/11/13