mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 08:33:54 +00:00
08a26e4579
sip 4 is the old and unmaintained version
32 lines
815 B
Nix
32 lines
815 B
Nix
{ lib, buildPythonPackage, fetchFromGitHub, python3, cmake
|
|
, pythonOlder, libnest2d, sip_4, clipper }:
|
|
|
|
buildPythonPackage rec {
|
|
version = "4.8.0";
|
|
pname = "pynest2d";
|
|
format = "other";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Ultimaker";
|
|
repo = "pynest2d";
|
|
rev = version;
|
|
sha256 = "18dn92vgr4gvf9scfh93yg9bwrhdjvq62di08rpi7pqjrrvq2nvp";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|