blob: b9d19289f13a8ad037e53b441d69c64ae2ce5e97 (
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
51
52
53
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
python,
pythonRecompileBytecodeHook,
swig,
cmake,
coin3d,
soqt,
libGLU,
}:
buildPythonPackage rec {
pname = "pivy";
version = "0.6.10";
pyproject = false;
src = fetchFromGitHub {
owner = "coin3d";
repo = "pivy";
tag = version;
hash = "sha256-DRA4NTAHg2iB/D1CU9pJEpsZwX9GW3X5gpxbIwP54Ko=";
};
nativeBuildInputs = [
swig
cmake
pythonRecompileBytecodeHook
];
buildInputs = [
coin3d
soqt
libGLU # dummy buildInput that provides missing header <GL/glu.h>
];
cmakeFlags = [
(lib.cmakeBool "PIVY_USE_QT6" true)
(lib.cmakeFeature "PIVY_Python_SITEARCH" "${placeholder "out"}/${python.sitePackages}")
];
dontWrapQtApps = true;
pythonImportsCheck = [ "pivy" ];
meta = {
homepage = "https://github.com/coin3d/pivy/";
description = "Python binding for Coin";
license = lib.licenses.bsd0;
maintainers = [ ];
};
}
|