Something went wrong. Try again.
lol
Something went wrong. Try again.
1.2 kB · 93 lines
Nix
at master
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394{ lib, buildPythonPackage, libgdstk,
# build-system build, scikit-build-core,
# deps numpy, typing-extensions,
# deps (optional) matplotlib, sphinx, sphinx-inline-tabs, sphinx-rtd-theme,
# build-time cmake, ninja,
# run-time zlib, qhull,
# tests pytestCheckHook,}:
buildPythonPackage { pname = "gdstk"; inherit (libgdstk) src version;
pyproject = true; strictDeps = true;
# scikit is supposed to handle the module build dontUseCmakeConfigure = true;
build-system = [ build cmake ninja numpy scikit-build-core ];
dependencies = [ numpy typing-extensions ];
optional-dependencies = { docs = [ matplotlib sphinx sphinx-inline-tabs sphinx-rtd-theme ]; };
buildInputs = [ zlib qhull ];
nativeCheckInputs = [ pytestCheckHook ];
# remove the `gdstk` source directory, else pytest will attempt to import it # instead of the actual module preCheck = '' rm -rf gdstk '';
pythonImportsCheck = [ "gdstk" ];
meta = { inherit (libgdstk.meta) description homepage changelog license maintainers teams ; };}