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)
(loop))))))))))
(replace 'check
(lambda _
(lambda* (#:key inputs outputs #:allow-other-keys)
;; Some tests need a writable homedir:
(setenv "HOME" "/tmp")
;; Ensure installed modules can be found:
(setenv "PYTHONPATH"
(string-append %output "/lib/python"
,(version-major+minor (package-version python))
"/site-packages:"
(getenv "PYTHONPATH")))
(add-installed-pythonpath inputs outputs)
;; Avoid `getprotobyname` issues:
(setenv "EVENTLET_NO_GREENDNS" "yes")
;; Make Qt render "offscreen":