[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#50213] [PATCH 17/19] gnu: python-flask: Use add-installed-pythonpat
From: |
jgart |
Subject: |
[bug#50213] [PATCH 17/19] gnu: python-flask: Use add-installed-pythonpath in the check phase. |
Date: |
Thu, 26 Aug 2021 11:15:51 -0400 |
* gnu/packages/python-web.scm (python-flask)[arguments]:
Use add-installed-pythonpath and tests? predicate in the check phase.
---
gnu/packages/python-web.scm | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 6784b5038f..561c788dde 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -2987,10 +2987,10 @@ minimum of WSGI.")
'(#: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 "pytest" "-vv")))))))
(native-inputs
`(("python-pytest" ,python-pytest)))
(propagated-inputs
--
2.33.0
- [bug#50213] [PATCH 13/19] gnu: python-markupsafe: Update to 2.0.1., (continued)
- [bug#50213] [PATCH 13/19] gnu: python-markupsafe: Update to 2.0.1., jgart, 2021/08/26
- [bug#50213] [PATCH 16/19] gnu: python-flask: Update to 2.0.1., jgart, 2021/08/26
- [bug#50213] [PATCH 19/19] gnu: python-flask: Add missing propagated-inputs., jgart, 2021/08/26
- [bug#50213] [PATCH 18/19] gnu: python-flask: Add missing native-inputs., jgart, 2021/08/26
- [bug#50213] [PATCH 12/19] gnu: python-itsdangerous: Update to 2.0.1., jgart, 2021/08/26
- [bug#50213] [PATCH 10/19] gnu: python-werkzeug: Disable tests that require networking., jgart, 2021/08/26
- [bug#50213] [PATCH 14/19] gnu: python-markupsafe: Fix linter warning to follow redirect., jgart, 2021/08/26
- [bug#50213] [PATCH 17/19] gnu: python-flask: Use add-installed-pythonpath in the check phase.,
jgart <=
- [bug#50213] [PATCH 15/19] gnu: Add python-dotenv., jgart, 2021/08/26
- Message not available
[bug#50213] [PATCH 1/6] gnu: python-werkzeug: Update to 2.0.1., jgart, 2021/08/31
- [bug#50213] [PATCH 5/6] gnu: Add python-dotenv., jgart, 2021/08/31
- [bug#50213] [PATCH 4/6] gnu: python-markupsafe: Update to 2.0.1., jgart, 2021/08/31
- [bug#50213] [PATCH 2/6] gnu: python-jinja2: Update to 3.0.1., jgart, 2021/08/31
- [bug#50213] [PATCH 3/6] gnu: python-itsdangerous: Update to 2.0.1., jgart, 2021/08/31
- [bug#50213] [PATCH 6/6] gnu: python-flask: Update to 2.0.1., jgart, 2021/08/31
[bug#50213] Updated patch set, jgart, 2021/08/31