2021-02-05 17:12:51 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, pkgs, qtbase, qmake, soqt }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pivy";
|
2022-09-14 18:05:37 +00:00
|
|
|
version = "0.6.8";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-10-07 09:15:18 +00:00
|
|
|
owner = "coin3d";
|
2020-04-24 23:36:52 +00:00
|
|
|
repo = "pivy";
|
2022-08-12 12:06:08 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2022-09-14 18:05:37 +00:00
|
|
|
hash = "sha256-y72nzZAelyRDR2JS73/0jo2x/XiDZpsERPZV3gzIhAI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-24 18:30:23 +00:00
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = with pkgs; [
|
2020-09-25 04:45:31 +00:00
|
|
|
swig qmake cmake
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = with pkgs; with xorg; [
|
2020-09-25 04:45:31 +00:00
|
|
|
coin3d soqt qtbase
|
2020-04-24 23:36:52 +00:00
|
|
|
libGLU libGL
|
|
|
|
libXi libXext libSM libICE libX11
|
|
|
|
];
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = toString [
|
2020-09-25 04:45:31 +00:00
|
|
|
"-I${qtbase.dev}/include/QtCore"
|
|
|
|
"-I${qtbase.dev}/include/QtGui"
|
|
|
|
"-I${qtbase.dev}/include/QtOpenGL"
|
|
|
|
"-I${qtbase.dev}/include/QtWidgets"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
dontUseQmakeConfigure = true;
|
2021-02-19 19:06:45 +00:00
|
|
|
dontWrapQtApps =true;
|
2020-04-24 23:36:52 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
postPatch = ''
|
2022-03-05 16:20:37 +00:00
|
|
|
substituteInPlace distutils_cmake/CMakeLists.txt --replace \$'{SoQt_INCLUDE_DIRS}' \
|
2020-04-24 23:36:52 +00:00
|
|
|
\$'{Coin_INCLUDE_DIR}'\;\$'{SoQt_INCLUDE_DIRS}'
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/coin3d/pivy/";
|
|
|
|
description = "A Python binding for Coin";
|
|
|
|
license = licenses.bsd0;
|
|
|
|
maintainers = with maintainers; [ gebner ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|