gnu: Add python-gdstk.

* gnu/packages/electronics.scm (python-gdstk): New variable

Change-Id: Ie6bf8e37106020bc723160347a9d111eb8bbc450
This commit is contained in:
Thomas Kramer 2026-01-24 16:33:29 +00:00
parent 8da29f8d95
commit 98a09d29da

View file

@ -2233,6 +2233,29 @@ Chip toolkit.")
which are commonly used for @acronym{EDA, elecronic design automation} and chip design.") which are commonly used for @acronym{EDA, elecronic design automation} and chip design.")
(license license:boost1.0))) (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 (define-public python-klayout
(package (package
(name "python-klayout") (name "python-klayout")