diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/gerbonara/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/gerbonara/default.nix | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/gerbonara/default.nix b/nixpkgs/pkgs/development/python-modules/gerbonara/default.nix new file mode 100644 index 000000000000..2e79e8aa3d43 --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/gerbonara/default.nix @@ -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 ]; + }; +} |