diff options
| author | Gabriel Wicki <gabriel@erlikon.ch> | 2026-03-02 12:58:20 +0100 |
|---|---|---|
| committer | Cayetano Santos <csantosb@inventati.org> | 2026-03-04 09:32:04 +0100 |
| commit | e5ce22956be4f20b7e1e52fb2f7e9b2c23f4ffd4 (patch) | |
| tree | 83a4d6839e1df944f6bf384fc965e87ce1528c56 /gnu | |
| parent | a66fce758b982ebae42cf55b91a148498ba24fc5 (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')
| -rw-r--r-- | gnu/packages/electronics.scm | 5 |
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."))) | |||
| 2516 | (lambda* (#:key tests? #:allow-other-keys) | 2516 | (lambda* (#:key tests? #:allow-other-keys) |
| 2517 | ;; Run the tests as specified in pyproject.toml. | 2517 | ;; Run the tests as specified in pyproject.toml. |
| 2518 | (when tests? | 2518 | (when tests? |
| 2519 | (substitute* "pyproject.toml" | ||
| 2520 | ;; Fix failing test | ||
| 2521 | (("TESTSRC=\\{package\\} ") | ||
| 2522 | "")) | ||
| 2523 | (setenv "TESTSRC" ".") | ||
| 2519 | (invoke "python" | 2524 | (invoke "python" |
| 2520 | #$(plain-file "python-klayout-test-runner.py" | 2525 | #$(plain-file "python-klayout-test-runner.py" |
| 2521 | "import tomllib, subprocess | 2526 | "import tomllib, subprocess |
