Skip to content

Commit

Permalink
python312Packages.pygerber: init at 2.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
clemjvdm committed Jan 4, 2025
1 parent 438effd commit cf43168
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 0 deletions.
79 changes: 79 additions & 0 deletions pkgs/development/python-modules/pygerber/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,

# build-system
poetry-core,

# dependencies
numpy,
click,
pillow,
pydantic,
pyparsing,
typing-extensions,
tzlocal,

# optional dependencies
pygls,
lsprotocol,
drawsvg,
pygments,
shapely,

}:

buildPythonPackage rec {
pname = "pygerber";
version = "2.4.2";
pyproject = true;

disabled = pythonOlder "3.8";

src = fetchFromGitHub {
owner = "Argmaster";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-N+9I59WiWXSXr7RrPzb7GFSqfjrd0q51AzalNFV4xEQ=";
};

build-system = [ poetry-core ];
dependencies = [
numpy
click
pillow
pydantic
pyparsing
typing-extensions
tzlocal
];

passthru.optional-dependencies = {
language_server = [
pygls
lsprotocol
];
svg = [ drawsvg ];
pygments = [ pygments ];
shapely = [ shapely ];
all = [
pygls
lsprotocol
drawsvg
pygments
shapely
];
};

pythonImportsCheck = [ "pygerber" ];

meta = {
description = "Implementation of the Gerber X3/X2 format, based on Ucamco's The Gerber Layer Format Specification";
homepage = "https://github.com/Argmaster/pygerber";
changelog = "https://argmaster.github.io/pygerber/stable/Changelog.html";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ clemjvdm ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10414,6 +10414,8 @@ self: super: with self; {

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

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

pygments-style-github = callPackage ../development/python-modules/pygments-style-github { };

pygnmi = callPackage ../development/python-modules/pygnmi { };
Expand Down

0 comments on commit cf43168

Please sign in to comment.