This is an automated email from the git hooks/post-receive script.
guix_mirror_bot pushed a commit to branch master
in repository guix.
The following commit(s) were added to refs/heads/master by this push:
new e5ce22956b gnu: python-klayout: Fix failing test.
e5ce22956b is described below
commit e5ce22956be4f20b7e1e52fb2f7e9b2c23f4ffd4
Author: Gabriel Wicki <[email protected]>
AuthorDate: Mon Mar 2 12:58:20 2026 +0100
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 <[email protected]>
---
gnu/packages/electronics.scm | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/gnu/packages/electronics.scm b/gnu/packages/electronics.scm
index d1c1f4090a..1e9502cfa4 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