1 { lib, buildPythonPackage, fetchFromGitHub, python, cmake
2 , libnest2d, sip_4, clipper }:
4 buildPythonPackage rec {
9 src = fetchFromGitHub {
13 hash = "sha256-QQdTDhO4i9NVhegGTmdEQSNv3gooaZzTX/Rv86h3GEo=";
16 propagatedBuildInputs = [ libnest2d sip_4 clipper ];
17 nativeBuildInputs = [ cmake ];
19 CLIPPER_PATH = "${clipper.out}";
22 sed -i 's#''${Python3_SITEARCH}#${placeholder "out"}/${python.sitePackages}#' cmake/SIPMacros.cmake
26 description = "Python bindings for libnest2d";
27 homepage = "https://github.com/Ultimaker/pynest2d";
28 license = licenses.lgpl3;
29 platforms = platforms.linux;