summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorGabriel Wicki <gabriel@erlikon.ch>2026-03-02 12:58:20 +0100
committerCayetano Santos <csantosb@inventati.org>2026-03-04 09:32:04 +0100
commite5ce22956be4f20b7e1e52fb2f7e9b2c23f4ffd4 (patch)
tree83a4d6839e1df944f6bf384fc965e87ce1528c56 /gnu/packages
parenta66fce758b982ebae42cf55b91a148498ba24fc5 (diff)
gnu: python-klayout: Fix failing test.
* gnu/packages/electronics.scm (python-klayout): Set environment variable outside of python Popen call. Merges guix/guix!5641 Change-Id: I29cc54bbb2cbfff2a43cb70b1066387e82190f2c Signed-off-by: Cayetano Santos <csantosb@inventati.org>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/electronics.scm5
1 files changed, 5 insertions, 0 deletions
diff --git a/gnu/packages/electronics.scm b/gnu/packages/electronics.scm
index d1c1f4090ab..1e9502cfa49 100644
--- a/gnu/packages/electronics.scm
+++ b/gnu/packages/electronics.scm
@@ -2516,6 +2516,11 @@ for @acronym{EDA, elecronic design automation} and chip design.")))
(lambda* (#:key tests? #:allow-other-keys)
;; Run the tests as specified in pyproject.toml.
(when tests?
+ (substitute* "pyproject.toml"
+ ;; Fix failing test
+ (("TESTSRC=\\{package\\} ")
+ ""))
+ (setenv "TESTSRC" ".")
(invoke "python"
#$(plain-file "python-klayout-test-runner.py"
"import tomllib, subprocess