From cab90f08321fcb3e21547de3661f67bea57caade Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Fri, 19 Nov 2021 09:23:32 +0100 Subject: [PATCH] gnu: onionshare: Do not set PYTHONPATH directly. * gnu/packages/tor.scm (onionshare)[arguments]: Use ADD-INSTALLED-PYTHONPATH in 'check phase. --- gnu/packages/tor.scm | 8 ++------ 1 file 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 @@ (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":