gnu: python-attrs: Do not set PYTHONPATH.

* gnu/packages/python-xyz.scm (python-attrs)
[arguments]: Remove the '#:modules' argument.
[phases]{check}: Do not set PYTHONPATH.
This commit is contained in:
Maxim Cournoyer 2021-01-24 00:21:58 -05:00
parent cbb9fab20f
commit d142c15b4f
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -15137,23 +15137,10 @@ (define-public python-attrs
"0wky4h28n7xnr6xv69p9z6kv8bzn50d10c3drmd9ds8gawbcxdzp"))))
(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 (modify-phases %standard-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 "python" "-m" "pytest")))))))
(invoke "pytest"))))))
(native-inputs
`(("python-coverage" ,python-coverage)
("python-hypothesis" ,python-hypothesis)