python312Packages.gdsfactory: 8.18.1 -> 9.5.1 (#401075)

This commit is contained in:
Gaétan Lepage
2025-04-23 11:35:36 +02:00
committed by GitHub
2 changed files with 36 additions and 19 deletions
@@ -2,8 +2,11 @@
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
# build-system
flit-core,
# dependencies
jinja2,
loguru,
matplotlib,
@@ -32,21 +35,25 @@
ipykernel,
attrs,
graphviz,
pyglet,
typing-extensions,
# tests
jsondiff,
jsonschema,
pytest-regressions,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "gdsfactory";
version = "8.18.1";
version = "9.5.1";
pyproject = true;
src = fetchFromGitHub {
owner = "gdsfactory";
repo = "gdsfactory";
rev = "v${version}";
hash = "sha256-wDz8QpRgu40FB8+otnGsHVn2e6/SWXIZgA1aeMqMhPQ=";
tag = "v${version}";
hash = "sha256-z8zKPbWLl554MZq6/Iy3ecvwWiRpy57VYji8xHR+JBo=";
};
build-system = [ flit-core ];
@@ -80,13 +87,15 @@ buildPythonPackage rec {
ipykernel
attrs
graphviz
pyglet
typing-extensions
];
nativeCheckInputs = [
jsondiff
jsonschema
pytestCheckHook
pytest-regressions
pytestCheckHook
];
pythonRelaxDeps = [
@@ -99,10 +108,11 @@ buildPythonPackage rec {
pythonImportsCheck = [ "gdsfactory" ];
meta = with lib; {
meta = {
description = "Python library to generate GDS layouts";
homepage = "https://github.com/gdsfactory/gdsfactory";
license = licenses.mit;
maintainers = with maintainers; [ fbeffa ];
changelog = "https://github.com/gdsfactory/gdsfactory/blob/v${version}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fbeffa ];
};
}
@@ -2,37 +2,43 @@
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
# build-system
setuptools,
setuptools-scm,
klayout,
# dependencies
aenum,
cachetools,
gitpython,
klayout,
loguru,
numpy,
pydantic,
pydantic-settings,
rectangle-packer,
requests,
ruamel-yaml,
ruamel-yaml-string,
scipy,
tomli,
toolz,
typer,
numpy,
ruamel-yaml,
# tests
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "kfactory";
version = "0.21.7";
version = "1.4.4";
pyproject = true;
src = fetchFromGitHub {
owner = "gdsfactory";
repo = "kfactory";
rev = "v${version}";
sha256 = "sha256-VLhAJ5rOBKEO1FDCnlaseA+SmrMSoyS+BaEzjdHm59Y=";
tag = "v${version}";
hash = "sha256-/dhlAcrqQP/YeKGhnBAVMEy80X3yShn65ywoZMRU/ZM=";
};
build-system = [
@@ -63,15 +69,16 @@ buildPythonPackage rec {
nativeCheckInputs = [ pytestCheckHook ];
# https://github.com/gdsfactory/kfactory/issues/511
disabledTestPaths = [
# https://github.com/gdsfactory/kfactory/issues/511
"tests/test_pdk.py"
];
meta = with lib; {
meta = {
description = "KLayout API implementation of gdsfactory";
homepage = "https://github.com/gdsfactory/kfactory";
license = licenses.mit;
maintainers = with maintainers; [ fbeffa ];
changelog = "https://github.com/gdsfactory/kfactory/blob/v${version}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fbeffa ];
};
}