Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
56 lines
1.2 KiB
Nix
56 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
gitUpdater,
|
|
setuptools,
|
|
click,
|
|
numpy,
|
|
scipy,
|
|
rtree,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "gerbonara";
|
|
version = "1.5.0";
|
|
src = fetchFromGitHub {
|
|
owner = "jaseg";
|
|
repo = "gerbonara";
|
|
rev = "v${version}";
|
|
hash = "sha256-yxSZuBw93wqIAw1wke80Vy/dtBcQwpQ2tQ1nwXdWi4k=";
|
|
};
|
|
|
|
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;
|
|
|
|
passthru.updateScript = gitUpdater { rev-prefix = "v"; };
|
|
|
|
meta = with lib; {
|
|
description = "Pythonic library for reading/modifying/writing Gerber/Excellon/IPC-356 files";
|
|
mainProgram = "gerbonara";
|
|
homepage = "https://github.com/jaseg/gerbonara";
|
|
license = with licenses; [ asl20 ];
|
|
maintainers = with maintainers; [ wulfsta ];
|
|
};
|
|
}
|