3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/pynest2d/default.nix
Felix Buehler 9812836f38 {cura,curaengine}: 4.10.0 -> 4.12.1,
{libnest2d,libarcus,libsavitar,pynest2d,uranium}: 4.10.0 -> 4.12.0
2021-12-14 16:22:07 +01:00

32 lines
802 B
Nix

{ lib, buildPythonPackage, fetchFromGitHub, python3, cmake
, libnest2d, sip_4, clipper }:
buildPythonPackage rec {
version = "4.12.0";
pname = "pynest2d";
format = "other";
src = fetchFromGitHub {
owner = "Ultimaker";
repo = "pynest2d";
rev = version;
sha256 = "sha256-QQdTDhO4i9NVhegGTmdEQSNv3gooaZzTX/Rv86h3GEo=";
};
propagatedBuildInputs = [ libnest2d sip_4 clipper ];
nativeBuildInputs = [ cmake ];
CLIPPER_PATH = "${clipper.out}";
postPatch = ''
sed -i 's#''${Python3_SITEARCH}#${placeholder "out"}/${python3.sitePackages}#' cmake/SIPMacros.cmake
'';
meta = with lib; {
description = "Python bindings for libnest2d";
homepage = "https://github.com/Ultimaker/pynest2d";
license = licenses.lgpl3;
platforms = platforms.linux;
};
}