gnu: python-rfc3986: Do not set PYTHONPATH.
* gnu/packages/python-xyz.scm (python-rfc3986) [arguments]: Remove the '#:modules' argument. [phases]{check}: Do not set PYTHONPATH.master
parent
693a001da7
commit
a0557f7ed7
|
@ -16133,23 +16133,11 @@ applying JSON Patches according to RFC 6902.")
|
||||||
"17dvx15m3r49bmif5zlli8kzjd6bys6psixzbp14sd5367d9h8qi"))))
|
"17dvx15m3r49bmif5zlli8kzjd6bys6psixzbp14sd5367d9h8qi"))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:modules ((guix build utils)
|
`(#:phases
|
||||||
(guix build python-build-system)
|
|
||||||
(ice-9 ftw)
|
|
||||||
(srfi srfi-1)
|
|
||||||
(srfi srfi-26))
|
|
||||||
#:phases
|
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda _
|
(lambda _
|
||||||
(let ((cwd (getcwd)))
|
(invoke "pytest" "-v"))))))
|
||||||
(setenv "PYTHONPATH"
|
|
||||||
(string-append cwd "/build/"
|
|
||||||
(find (cut string-prefix? "lib" <>)
|
|
||||||
(scandir (string-append cwd "/build")))
|
|
||||||
":"
|
|
||||||
(getenv "PYTHONPATH")))
|
|
||||||
(invoke "pytest" "-v")))))))
|
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("python-pytest" ,python-pytest)))
|
`(("python-pytest" ,python-pytest)))
|
||||||
(home-page "https://rfc3986.readthedocs.io/")
|
(home-page "https://rfc3986.readthedocs.io/")
|
||||||
|
|
Reference in New Issue