nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 50 lines 885 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 python, 6 cmake, 7 libnest2d, 8 sip4, 9 clipper, 10 distutils, 11}: 12 13buildPythonPackage rec { 14 version = "5.3.0"; 15 pname = "pynest2d"; 16 pyproject = false; 17 18 src = fetchFromGitHub { 19 owner = "Ultimaker"; 20 repo = "pynest2d"; 21 tag = version; 22 hash = "sha256-J7QFzWvqOaUx4Gfi5VLLWi0hJIyfYc0Htu2CM7ze6xA="; 23 }; 24 25 propagatedBuildInputs = [ 26 libnest2d 27 sip4 28 clipper 29 distutils 30 ]; 31 nativeBuildInputs = [ 32 cmake 33 sip4 34 ]; 35 36 strictDeps = true; 37 38 env.CLIPPER_PATH = clipper.out; 39 40 postPatch = '' 41 sed -i 's#''${Python3_SITEARCH}#${placeholder "out"}/${python.sitePackages}#' cmake/SIPMacros.cmake 42 ''; 43 44 meta = { 45 description = "Python bindings for libnest2d"; 46 homepage = "https://github.com/Ultimaker/pynest2d"; 47 license = lib.licenses.lgpl3; 48 platforms = lib.platforms.linux; 49 }; 50}