Skip to content

Commit

Permalink
python3Packages.gdsfactory: init at 8.18.1
Browse files Browse the repository at this point in the history
  • Loading branch information
fedeinthemix committed Jan 16, 2025
1 parent d36c699 commit 14a5282
Show file tree
Hide file tree
Showing 2 changed files with 107 additions and 0 deletions.
105 changes: 105 additions & 0 deletions pkgs/development/python-modules/gdsfactory/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
flit-core,
jinja2,
loguru,
matplotlib,
numpy,
orjson,
pandas,
pydantic,
pydantic-settings,
pydantic-extra-types,
pyyaml,
qrcode,
rectpack,
rich,
scipy,
shapely,
toolz,
types-pyyaml,
typer,
kfactory,
watchdog,
freetype-py,
mapbox-earcut,
networkx,
scikit-image,
trimesh,
ipykernel,
attrs,
graphviz,
# tests
jsondiff,
jsonschema,
pytest-regressions,
}:
buildPythonPackage rec {
pname = "gdsfactory";
version = "8.18.1";
pyproject = true;

src = fetchFromGitHub {
owner = "gdsfactory";
repo = "gdsfactory";
rev = "v${version}";
hash = "sha256-wDz8QpRgu40FB8+otnGsHVn2e6/SWXIZgA1aeMqMhPQ=";
};

build-system = [ flit-core ];

dependencies = [
jinja2
loguru
matplotlib
numpy
orjson
pandas
pydantic
pydantic-settings
pydantic-extra-types
pyyaml
qrcode
rectpack
rich
scipy
shapely
toolz
types-pyyaml
typer
kfactory
watchdog
freetype-py
mapbox-earcut
networkx
scikit-image
trimesh
ipykernel
attrs
graphviz
];

nativeCheckInputs = [
jsondiff
jsonschema
pytestCheckHook
pytest-regressions
];

pythonRelaxDeps = [ "pydantic" ];

# tests require >32GB of RAM
doCheck = false;

pythonImportsCheck = [ "gdsfactory" ];

meta = with lib; {
description = "Python library to generate GDS layouts";
homepage = "https://github.com/gdsfactory/gdsfactory";
license = licenses.mit;
maintainers = with maintainers; [ fbeffa ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5086,6 +5086,8 @@ self: super: with self; {

gdown = callPackage ../development/python-modules/gdown { };

gdsfactory = callPackage ../development/python-modules/gdsfactory { };

ge25519 = callPackage ../development/python-modules/ge25519 { };

geant4 = toPythonModule (pkgs.geant4.override {
Expand Down

0 comments on commit 14a5282

Please sign in to comment.