mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-27 13:09:23 -05:00
gnu: python-typed-ast: Do not set PYTHONPATH.
* gnu/packages/python-xyz.scm (python-typed-ast) [arguments]: Remove the '#:modules' argument. [phases]{check}: Do not set PYTHONPATH.
This commit is contained in:
parent
e2b35aeda0
commit
141a90ea2c
1 changed files with 2 additions and 15 deletions
|
@ -18082,24 +18082,11 @@ (define-public python-typed-ast
|
||||||
(file-name (git-file-name name version))))
|
(file-name (git-file-name name version))))
|
||||||
(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"))))))
|
||||||
(setenv "PYTHONPATH"
|
|
||||||
(string-append cwd "/build/"
|
|
||||||
(find (cut string-prefix? "lib" <>)
|
|
||||||
(scandir (string-append cwd "/build")))
|
|
||||||
":"
|
|
||||||
(getenv "PYTHONPATH"))))
|
|
||||||
(invoke "pytest")
|
|
||||||
#t)))))
|
|
||||||
(native-inputs `(("python-pytest" ,python-pytest)))
|
(native-inputs `(("python-pytest" ,python-pytest)))
|
||||||
(home-page "https://github.com/python/typed_ast")
|
(home-page "https://github.com/python/typed_ast")
|
||||||
(synopsis "Fork of Python @code{ast} modules with type comment support")
|
(synopsis "Fork of Python @code{ast} modules with type comment support")
|
||||||
|
|
Loading…
Reference in a new issue