gnu: python-multidict: Do not set PYTHONPATH.
* gnu/packages/python-xyz.scm (python-multidict) [phases]{check}: Do not set PYTHONPATH.
This commit is contained in:
parent
210a97cf7d
commit
fa013a92a9
1 changed files with 3 additions and 15 deletions
|
@ -5419,24 +5419,12 @@ (define-public python-multidict
|
|||
"07ikq2c72kd263hpldw55y0px2l3g34hjk66ml9lryh1jv287qmf"))))
|
||||
(build-system python-build-system)
|
||||
(arguments
|
||||
'(#:modules ((ice-9 ftw)
|
||||
(srfi srfi-1)
|
||||
(srfi srfi-26)
|
||||
(guix build utils)
|
||||
(guix build python-build-system))
|
||||
#:phases (modify-phases %standard-phases
|
||||
'(#:phases (modify-phases %standard-phases
|
||||
(replace 'check
|
||||
(lambda* (#:key tests? #:allow-other-keys)
|
||||
(if tests?
|
||||
(begin
|
||||
(let ((libdir (find (cut string-prefix? "lib." <>)
|
||||
(scandir "build"))))
|
||||
(setenv "PYTHONPATH"
|
||||
(string-append "./build/" libdir ":"
|
||||
(getenv "PYTHONPATH")))
|
||||
(invoke "pytest" "-vv")))
|
||||
(format #t "test suite not run~%"))
|
||||
#t)))))
|
||||
(invoke "pytest" "-vv")
|
||||
(format #t "test suite not run~%")))))))
|
||||
(native-inputs
|
||||
`(("python-pytest" ,python-pytest)
|
||||
("python-pytest-cov" ,python-pytest-cov)))
|
||||
|
|
Loading…
Reference in a new issue