From 98a09d29daeefdb7b81dc7861be0c96a5d14ed35 Mon Sep 17 00:00:00 2001 From: Thomas Kramer Date: Sat, 24 Jan 2026 16:33:29 +0000 Subject: [PATCH] gnu: Add python-gdstk. * gnu/packages/electronics.scm (python-gdstk): New variable Change-Id: Ie6bf8e37106020bc723160347a9d111eb8bbc450 --- gnu/packages/electronics.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gnu/packages/electronics.scm b/gnu/packages/electronics.scm index fc6134ed985..c44ca37c2e3 100644 --- a/gnu/packages/electronics.scm +++ b/gnu/packages/electronics.scm @@ -2233,6 +2233,29 @@ Chip toolkit.") which are commonly used for @acronym{EDA, elecronic design automation} and chip design.") (license license:boost1.0))) +(define-public python-gdstk + (package + (inherit gdstk) + (name "python-gdstk") + (build-system pyproject-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? outputs #:allow-other-keys) + (when tests? + (setenv "PYTHONPATH" + (getenv "GUIX_PYTHONPATH")) + (invoke "pytest" "."))))))) + (native-inputs (list cmake-minimal python-scikit-build-core python-pytest)) + (inputs (list zlib python-numpy qhull)) + (synopsis "Python module for creation and manipulation of GDSII files") + (description + "@code{python-gdstk} is a Python library for creation +and manipulation of GDSII layout files which are commonly used +for @acronym{EDA, elecronic design automation} and chip design."))) + (define-public python-klayout (package (name "python-klayout")