[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
96/131: gnu: python-apispec: Do not set PYTHONPATH.
From: |
guix-commits |
Subject: |
96/131: gnu: python-apispec: Do not set PYTHONPATH. |
Date: |
Mon, 1 Feb 2021 11:56:59 -0500 (EST) |
apteryx pushed a commit to branch core-updates
in repository guix.
commit 9e906e8d3b7303e9f22eb57d18cc437f06727b75
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Sun Jan 24 10:44:51 2021 -0500
gnu: python-apispec: Do not set PYTHONPATH.
* gnu/packages/python-xyz.scm (python-apispec)
{disable-prance-tests}: Remove phase.
[phases]{check}: Do not set PYTHONPATH. Exclude the tests using the CLI of
Pytest.
---
gnu/packages/python-xyz.scm | 16 +++++-----------
1 file changed, 5 insertions(+), 11 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 4ac1ab2..cccee4b 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -16460,19 +16460,13 @@ complex datatypes to and from native Python
datatypes.")
(build-system python-build-system)
(arguments
'(#:phases (modify-phases %standard-phases
- (add-after 'unpack 'disable-prance-tests
- (lambda _
- ;; Disable validation tests since they require the
- ;; optional 'prance' library which is not yet in Guix.
- (substitute* "tests/test_ext_marshmallow_openapi.py"
- (("def test_openapi_tools_validate.*" all)
- (string-append "@pytest.mark.xfail\n" all)))))
(replace 'check
(lambda _
- (setenv "PYTHONPATH"
- (string-append "./build/lib:"
- (getenv "PYTHONPATH")))
- (invoke "pytest" "-vv"))))))
+ (invoke "pytest" "-vv"
+ ;; Disable validation tests since they require
+ ;; the optional 'prance' library which is not
+ ;; yet in Guix.
+ "-k" "not openapi_tools_validate"))))))
(propagated-inputs
`(("python-pyyaml" ,python-pyyaml)))
(native-inputs
- 103/131: gnu: python-jsonpickle: Do not set PYTHONPATH., (continued)
- 103/131: gnu: python-jsonpickle: Do not set PYTHONPATH., guix-commits, 2021/02/01
- 119/131: gnu: python-cloudpickle: Do not alter PYTHONPATH., guix-commits, 2021/02/01
- 116/131: gnu: pypy3: Do not alter PYTHONPATH., guix-commits, 2021/02/01
- 126/131: gnu: kaldi-gstreamer-server: Wrap with GUIX_PYTHONPATH., guix-commits, 2021/02/01
- 130/131: gnu: meson-for-build: Remove package., guix-commits, 2021/02/01
- 78/131: gnu: python-pygithub: Do not set PYTHONPATH., guix-commits, 2021/02/01
- 79/131: gnu: python-matplotlib-documentation: Do not read PYTHONPATH., guix-commits, 2021/02/01
- 104/131: gnu: python-databricks-cli: Do not set PYTHONPATH., guix-commits, 2021/02/01
- 105/131: gnu: python-flask: Do not set PYTHONPATH., guix-commits, 2021/02/01
- 108/131: gnu: python-gunicorn: Do not set PYTHONPATH., guix-commits, 2021/02/01
- 96/131: gnu: python-apispec: Do not set PYTHONPATH.,
guix-commits <=
- 121/131: gnu: freecad: Wrap with GUIX_PYTHONPATH., guix-commits, 2021/02/01
- 114/131: gnu: gpodder: Do not alter PYTHONPATH., guix-commits, 2021/02/01
- 86/131: gnu: python-gevent: Do not set PYTHONPATH., guix-commits, 2021/02/01
- 94/131: gnu: python-pbkdf2: Do not set PYTHONPATH., guix-commits, 2021/02/01
- 99/131: gnu: python-aiohttp: Do not set PYTHONPATH., guix-commits, 2021/02/01
- 107/131: gnu: python-webassets: Do not set PYTHONPATH., guix-commits, 2021/02/01
- 111/131: gnu: redshift: Wrap with GUIX_PYTHONPATH., guix-commits, 2021/02/01
- 101/131: gnu: python-aws-xray-sdk: Do not set PYTHONPATH., guix-commits, 2021/02/01
- 35/131: gnu: python-pyhamcrest: Update to 2.0.2., guix-commits, 2021/02/01
- 84/131: gnu: python-moto: Do not set PYTHONPATH., guix-commits, 2021/02/01