gnu: onionshare: Do not set PYTHONPATH directly.

* gnu/packages/tor.scm (onionshare)[arguments]: Use ADD-INSTALLED-PYTHONPATH
in 'check phase.
This commit is contained in:
Ricardo Wurmus 2021-11-19 09:23:32 +01:00
parent 66fc69794c
commit cab90f0832
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -339,15 +339,11 @@ (define-public onionshare
(display line out) (display line out)
(loop)))))))))) (loop))))))))))
(replace 'check (replace 'check
(lambda _ (lambda* (#:key inputs outputs #:allow-other-keys)
;; Some tests need a writable homedir: ;; Some tests need a writable homedir:
(setenv "HOME" "/tmp") (setenv "HOME" "/tmp")
;; Ensure installed modules can be found: ;; Ensure installed modules can be found:
(setenv "PYTHONPATH" (add-installed-pythonpath inputs outputs)
(string-append %output "/lib/python"
,(version-major+minor (package-version python))
"/site-packages:"
(getenv "PYTHONPATH")))
;; Avoid `getprotobyname` issues: ;; Avoid `getprotobyname` issues:
(setenv "EVENTLET_NO_GREENDNS" "yes") (setenv "EVENTLET_NO_GREENDNS" "yes")
;; Make Qt render "offscreen": ;; Make Qt render "offscreen":