depot/third_party/nixpkgs/pkgs/development/python-modules/pivy/default.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

74 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pkgs,
qtbase,
qmake,
soqt,
}:
buildPythonPackage rec {
pname = "pivy";
version = "0.6.9";
pyproject = true;
src = fetchFromGitHub {
owner = "coin3d";
repo = "pivy";
rev = "refs/tags/${version}";
hash = "sha256-wWM8eKTehWCIbRxxWkZ4YrYyeIJuzQaBOUMrW9a5MVo=";
};
build-system = [ setuptools ];
dontUseCmakeConfigure = true;
nativeBuildInputs = with pkgs; [
swig
qmake
cmake
];
buildInputs =
with pkgs;
with xorg;
[
coin3d
soqt
qtbase
libGLU
libGL
libXi
libXext
libSM
libICE
libX11
];
env.NIX_CFLAGS_COMPILE = toString [
"-I${qtbase.dev}/include/QtCore"
"-I${qtbase.dev}/include/QtGui"
"-I${qtbase.dev}/include/QtOpenGL"
"-I${qtbase.dev}/include/QtWidgets"
];
dontUseQmakeConfigure = true;
dontWrapQtApps = true;
doCheck = false;
postPatch = ''
substituteInPlace distutils_cmake/CMakeLists.txt --replace \$'{SoQt_INCLUDE_DIRS}' \
\$'{Coin_INCLUDE_DIR}'\;\$'{SoQt_INCLUDE_DIRS}'
'';
pythonImportsCheck = [ "pivy" ];
meta = with lib; {
homepage = "https://github.com/coin3d/pivy/";
description = "Python binding for Coin";
license = licenses.bsd0;
maintainers = with maintainers; [ gebner ];
};
}