me
/
guix
Archived
1
0
Fork 0

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.
master
Maxim Cournoyer 2021-01-24 00:28:18 -05:00
parent e2b35aeda0
commit 141a90ea2c
No known key found for this signature in database
GPG Key ID: 1260E46482E63562
1 changed files with 2 additions and 15 deletions

View File

@ -18082,24 +18082,11 @@ source bytes using the UTF-8 encoding and then rewrites Python 3.6 style
(file-name (git-file-name name version))))
(build-system python-build-system)
(arguments
`(#:modules ((guix build utils)
(guix build python-build-system)
(ice-9 ftw)
(srfi srfi-1)
(srfi srfi-26))
#:phases
`(#:phases
(modify-phases %standard-phases
(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")
#t)))))
(invoke "pytest"))))))
(native-inputs `(("python-pytest" ,python-pytest)))
(home-page "https://github.com/python/typed_ast")
(synopsis "Fork of Python @code{ast} modules with type comment support")