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