gerbonara: init at v1.2.0

This commit is contained in:
Wulfsta 2024-02-03 22:17:56 -05:00
parent 61ef96ff00
commit f0962ef6a5
2 changed files with 55 additions and 0 deletions

View File

@ -0,0 +1,53 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, pytest
, click
, numpy
, scipy
, rtree
}:
buildPythonPackage rec {
pname = "gerbonara";
version = "1.2.0";
src = fetchFromGitHub {
owner = "jaseg";
repo = "gerbonara";
rev = "v${version}";
hash = "sha256-VU4Of90YUPoLuiUpIDwSUfxQOoKChNbZE0klHkHEmaY=";
};
format = "setuptools";
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
click
numpy
scipy
rtree
];
preConfigure = ''
# setup.py tries to execute a call to git in a subprocess, this avoids it.
substituteInPlace setup.py \
--replace "version=version()," \
"version='${version}',"
'';
pythonImportsCheck = [ "gerbonara" ];
# Test environment is exceptionally tricky to get set up, so skip for now.
doCheck = false;
meta = with lib; {
description = "Pythonic library for reading/modifying/writing Gerber/Excellon/IPC-356 files";
homepage = "https://github.com/jaseg/gerbonara";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ wulfsta ];
};
}

View File

@ -4573,6 +4573,8 @@ self: super: with self; {
georss-wa-dfes-client = callPackage ../development/python-modules/georss-wa-dfes-client { };
gerbonara = callPackage ../development/python-modules/gerbonara { };
getjump = callPackage ../development/python-modules/getjump { };
getmac = callPackage ../development/python-modules/getmac { };