mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-markupsafe: Do not set PYTHONPATH.
* gnu/packages/python-xyz.scm (python-markupsafe) [phases]{check}: Do not set PYTHONPATH.
This commit is contained in:
parent
a343c504eb
commit
4f23ab3f53
1 changed files with 2 additions and 13 deletions
|
@ -3178,21 +3178,10 @@ e.g. filters, callbacks and errbacks can all be promises.")
|
||||||
"0sqipg4fk7xbixqd8kq6rlkxj664d157bdwbh93farcphf92x1r9"))))
|
"0sqipg4fk7xbixqd8kq6rlkxj664d157bdwbh93farcphf92x1r9"))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:modules ((ice-9 ftw)
|
`(#:phases (modify-phases %standard-phases
|
||||||
(srfi srfi-1)
|
|
||||||
(srfi srfi-26)
|
|
||||||
(guix build utils)
|
|
||||||
(guix build python-build-system))
|
|
||||||
#:phases (modify-phases %standard-phases
|
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda _
|
(lambda _
|
||||||
(let ((cwd (getcwd))
|
(invoke "pytest" "-vv"))))))
|
||||||
(libdir (find (cut string-prefix? "lib." <>)
|
|
||||||
(scandir "build"))))
|
|
||||||
(setenv "PYTHONPATH"
|
|
||||||
(string-append cwd "/build/" libdir ":"
|
|
||||||
(getenv "PYTHONPATH")))
|
|
||||||
(invoke "pytest" "-vv")))))))
|
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("python-pytest" ,python-pytest)))
|
`(("python-pytest" ,python-pytest)))
|
||||||
(home-page "https://github.com/mitsuhiko/markupsafe")
|
(home-page "https://github.com/mitsuhiko/markupsafe")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue