aboutsummaryrefslogtreecommitdiff
path: root/hydrilla-guix
diff options
context:
space:
mode:
Diffstat (limited to 'hydrilla-guix')
-rw-r--r--hydrilla-guix/hydrilla.scm19
1 files changed, 17 insertions, 2 deletions
diff --git a/hydrilla-guix/hydrilla.scm b/hydrilla-guix/hydrilla.scm
index f580942..d505bf8 100644
--- a/hydrilla-guix/hydrilla.scm
+++ b/hydrilla-guix/hydrilla.scm
@@ -296,12 +296,27 @@ static types.")
(local-file (string-append %source-dir "/dist/" source-tarball-name)))
(build-system python-build-system)
(arguments
- `(#:phases
+ `(#:modules ((ice-9 match)
+ (guix build utils)
+ (guix build python-build-system))
+ #:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
- (invoke "pytest")))))))
+ (invoke "pytest"))))
+ (add-after 'wrap 'prevent-local-package-interference
+ (lambda* (#:key outputs #:allow-other-keys)
+ (match-let ((((_ . dir)) outputs))
+ (for-each (lambda (prog-name)
+ (substitute* (string-append dir "/bin/" prog-name)
+ (("^#!/.*$" shabang)
+ (string-append shabang
+ "export PYTHONNOUSERSITE=1\n"))))
+ '("hydrilla"
+ "hydrilla-server"
+ "hydrilla-builder"
+ "haketilo"))))))))
(propagated-inputs
(list mitmproxy
python-beautifulsoup4