diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2021-11-19 09:23:32 +0100 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2021-11-19 10:11:25 +0100 |
commit | cab90f08321fcb3e21547de3661f67bea57caade (patch) | |
tree | 4cf266db2c17cd2a3c5b834d959e183dcb4fbd7a /gnu | |
parent | 66fc69794c52dbe0ce68c052f7abfdd86cf02fd3 (diff) | |
download | guix-cab90f08321fcb3e21547de3661f67bea57caade.tar.gz |
gnu: onionshare: Do not set PYTHONPATH directly.
* gnu/packages/tor.scm (onionshare)[arguments]: Use ADD-INSTALLED-PYTHONPATH in 'check phase.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/tor.scm | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gnu/packages/tor.scm b/gnu/packages/tor.scm index f710c8297a..3fb84cd4fc 100644 --- a/gnu/packages/tor.scm +++ b/gnu/packages/tor.scm @@ -339,15 +339,11 @@ 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": |