2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
2024-10-04 16:56:33 +00:00
|
|
|
setuptools,
|
2024-06-05 15:53:02 +00:00
|
|
|
pkgs,
|
|
|
|
qtbase,
|
|
|
|
qmake,
|
|
|
|
soqt,
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pivy";
|
2024-10-04 16:56:33 +00:00
|
|
|
version = "0.6.9";
|
|
|
|
pyproject = true;
|
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}";
|
2024-10-04 16:56:33 +00:00
|
|
|
hash = "sha256-wWM8eKTehWCIbRxxWkZ4YrYyeIJuzQaBOUMrW9a5MVo=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
2021-02-24 18:30:23 +00:00
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = with pkgs; [
|
2024-06-05 15:53:02 +00:00
|
|
|
swig
|
|
|
|
qmake
|
|
|
|
cmake
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
buildInputs =
|
|
|
|
with pkgs;
|
|
|
|
with xorg;
|
|
|
|
[
|
|
|
|
coin3d
|
|
|
|
soqt
|
|
|
|
qtbase
|
|
|
|
libGLU
|
|
|
|
libGL
|
|
|
|
libXi
|
|
|
|
libXext
|
|
|
|
libSM
|
|
|
|
libICE
|
|
|
|
libX11
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
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;
|
2024-06-05 15:53:02 +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}'
|
|
|
|
'';
|
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
pythonImportsCheck = [ "pivy" ];
|
|
|
|
|
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/";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Python binding for Coin";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd0;
|
|
|
|
maintainers = with maintainers; [ gebner ];
|
|
|
|
};
|
|
|
|
}
|