mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-18 12:47:33 -05:00
gnu: python-natsort: Do not set PYTHONPATH.
* gnu/packages/python-xyz.scm (python-natsort) [arguments]: Remove the '#:modules' argument. [phases]{check}: Do not set PYTHONPATH.
This commit is contained in:
parent
0e1cffad12
commit
3533016ae3
1 changed files with 2 additions and 15 deletions
|
@ -13867,27 +13867,14 @@ (define-public python-natsort
|
|||
"1ksqfai72dbcfbwx43pxl658j59mx2rvqypjy1fk0ax2qd6lccx6"))))
|
||||
(build-system python-build-system)
|
||||
(arguments
|
||||
`(#:modules ((guix build utils)
|
||||
(guix build python-build-system)
|
||||
(srfi srfi-1)
|
||||
(srfi srfi-26)
|
||||
(ice-9 ftw))
|
||||
#:phases
|
||||
`(#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-before 'check 'set-cachedir
|
||||
;; Tests require write access to $HOME by default
|
||||
(lambda _ (setenv "PYTHON_EGG_CACHE" "/tmp") #t))
|
||||
(replace 'check
|
||||
(lambda _
|
||||
(let ((cwd (getcwd)))
|
||||
(setenv "PYTHONPATH"
|
||||
(string-append
|
||||
cwd "/build/"
|
||||
(find (cut string-prefix? "lib" <>)
|
||||
(scandir (string-append cwd "/build")))
|
||||
":"
|
||||
(getenv "PYTHONPATH")))
|
||||
(invoke "pytest" "-v")))))))
|
||||
(invoke "pytest" "-v"))))))
|
||||
(native-inputs
|
||||
`(("python-hypothesis" ,python-hypothesis)
|
||||
("python-pytest-cov" ,python-pytest-cov)
|
||||
|
|
Loading…
Reference in a new issue