me
/
guix
Archived
1
0
Fork 0

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
Maxim Cournoyer 2021-01-24 10:08:01 -05:00
parent 693a001da7
commit a0557f7ed7
No known key found for this signature in database
GPG Key ID: 1260E46482E63562
1 changed files with 2 additions and 14 deletions

View File

@ -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/")