Compare commits

...

2 commits

Author SHA1 Message Date
Thomas Kramer
77ca0514ef gnu: Add python-gdstk.
* gnu/packages/electronics.scm (python-gdstk): New variable

Change-Id: Ie6bf8e37106020bc723160347a9d111eb8bbc450
2026-01-24 17:05:57 +00:00
Thomas Kramer
8da29f8d95 gnu: Add gdstk.
* gnu/packages/electronics.scm (gdstk): New variable

Change-Id: I2237a54e85e0f8c866b1674b04d2c36b28174472
2026-01-24 17:05:57 +00:00

View file

@ -2203,6 +2203,51 @@ programming language, as well as evaluation board definitions and a System on
Chip toolkit.")
(license license:bsd-3)))
(define-public gdstk
(package
(name "gdstk")
(version "0.9.62")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/heitzmann/gdstk")
(commit (string-append "v" version))))
(sha256
(base32 "0q07g7h613yqszgs49vbnran3pz6yayc0hyisdnp4fi60cyzsz1l"))
(file-name (git-file-name name version))))
(build-system cmake-build-system)
(arguments
(list
#:phases
#~(modify-phases %standard-phases
(add-before 'check 'build-examples
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "make" "examples")))))))
(inputs (list zlib qhull))
(home-page "https://heitzmann.github.io/gdstk/")
(synopsis "Library for creation and manipulation of GDSII files")
(description
"@code{gdstk} is a library for creation and manipulation of GDSII layout files
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
'(#:tests? #f)) ;TODO fix tests
;; (propagated-inputs (list python-numpy python-typing-extensions))
(native-inputs (list cmake-minimal python-scikit-build-core))
(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")