summaryrefslogtreecommitdiff
path: root/gnu/packages/tor.scm
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2021-11-19 09:23:32 +0100
committerRicardo Wurmus <rekado@elephly.net>2021-11-19 10:11:25 +0100
commitcab90f08321fcb3e21547de3661f67bea57caade (patch)
tree4cf266db2c17cd2a3c5b834d959e183dcb4fbd7a /gnu/packages/tor.scm
parent66fc69794c52dbe0ce68c052f7abfdd86cf02fd3 (diff)
gnu: onionshare: Do not set PYTHONPATH directly.
* gnu/packages/tor.scm (onionshare)[arguments]: Use ADD-INSTALLED-PYTHONPATH in 'check phase.
Diffstat (limited to 'gnu/packages/tor.scm')
-rw-r--r--gnu/packages/tor.scm8
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":