mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-18 12:47:33 -05:00
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.
This commit is contained in:
parent
a0557f7ed7
commit
9e906e8d3b
1 changed files with 5 additions and 11 deletions
|
@ -16460,19 +16460,13 @@ (define-public python-apispec
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:phases (modify-phases %standard-phases
|
'(#: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
|
(replace 'check
|
||||||
(lambda _
|
(lambda _
|
||||||
(setenv "PYTHONPATH"
|
(invoke "pytest" "-vv"
|
||||||
(string-append "./build/lib:"
|
;; Disable validation tests since they require
|
||||||
(getenv "PYTHONPATH")))
|
;; the optional 'prance' library which is not
|
||||||
(invoke "pytest" "-vv"))))))
|
;; yet in Guix.
|
||||||
|
"-k" "not openapi_tools_validate"))))))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
`(("python-pyyaml" ,python-pyyaml)))
|
`(("python-pyyaml" ,python-pyyaml)))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
|
|
Loading…
Reference in a new issue