gnu: python-tablib: Use GUIX_PYTHONPATH instead of PYTHONPATH.

* gnu/packages/python-xyz.scm (python-tablib)[arguments]: Use GUIX_PYTHONPATH
instead of PYTHONPATH in 'check phase.
This commit is contained in:
Ricardo Wurmus 2021-11-18 18:46:34 +00:00
parent fc3e4ef0db
commit 675f324e12
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -27518,9 +27518,9 @@ (define-public python-tablib
(replace 'check (replace 'check
(lambda* (#:key tests? #:allow-other-keys) (lambda* (#:key tests? #:allow-other-keys)
(when tests? (when tests?
(setenv "PYTHONPATH" (setenv "GUIX_PYTHONPATH"
(string-append (getcwd) "/build/lib:" (string-append (getcwd) "/build/lib:"
(getenv "PYTHONPATH"))) (getenv "GUIX_PYTHONPATH")))
(invoke "pytest"))))))) (invoke "pytest")))))))
(native-inputs (native-inputs
`(("python-pandas" ,python-pandas) ;; required for test-suite `(("python-pandas" ,python-pandas) ;; required for test-suite