gnu: python-cloudpickle: Do not alter PYTHONPATH.

* gnu/packages/python.scm (python-cloudpickle)
[phases]{do-not-override-PYTHONPATH}: Delete phase.  Remove trailing #t.
This commit is contained in:
Maxim Cournoyer 2021-01-27 20:45:11 -05:00
parent aa7056f1f3
commit 44ddafe167
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -19262,20 +19262,11 @@ (define-public python-cloudpickle
(build-system python-build-system)
(arguments
'(#:phases (modify-phases %standard-phases
(add-before 'check 'do-not-override-PYTHONPATH
(lambda _
;; Append to PYTHONPATH instead of overriding it so
;; that dependencies from Guix can be found.
(substitute* "tests/testutils.py"
(("env\\['PYTHONPATH'\\] = pythonpath")
"env['PYTHONPATH'] += os.pathsep + pythonpath"))
#t))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(if tests?
(invoke "pytest" "-s" "-vv")
(format #t "test suite not run~%"))
#t)))))
(format #t "test suite not run~%")))))))
(native-inputs
`(;; For tests.
("python-psutil" ,python-psutil)