Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 798 B view raw
1{ lib, buildPythonPackage, fetchFromGitHub, python, cmake 2, libnest2d, sip_4, clipper }: 3 4buildPythonPackage rec { 5 version = "4.12.0"; 6 pname = "pynest2d"; 7 format = "other"; 8 9 src = fetchFromGitHub { 10 owner = "Ultimaker"; 11 repo = "pynest2d"; 12 rev = version; 13 hash = "sha256-QQdTDhO4i9NVhegGTmdEQSNv3gooaZzTX/Rv86h3GEo="; 14 }; 15 16 propagatedBuildInputs = [ libnest2d sip_4 clipper ]; 17 nativeBuildInputs = [ cmake ]; 18 19 CLIPPER_PATH = "${clipper.out}"; 20 21 postPatch = '' 22 sed -i 's#''${Python3_SITEARCH}#${placeholder "out"}/${python.sitePackages}#' cmake/SIPMacros.cmake 23 ''; 24 25 meta = with lib; { 26 description = "Python bindings for libnest2d"; 27 homepage = "https://github.com/Ultimaker/pynest2d"; 28 license = licenses.lgpl3; 29 platforms = platforms.linux; 30 }; 31}