2019-06-15 18:44:41 +02:00
|
|
|
{ stdenv, buildPythonPackage, fetchFromGitHub, pkgs }:
|
2018-10-29 22:38:11 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pivy";
|
2019-06-15 18:44:41 +02:00
|
|
|
version = "0.6.5a2";
|
2018-10-29 22:38:11 +01:00
|
|
|
|
2019-06-15 18:44:41 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "FreeCAD";
|
|
|
|
repo = "pivy";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1w03jaha36bjyfaz8hchnv8yrkm5715w15crhd3qrlagz8fs38hm";
|
2018-10-29 22:38:11 +01:00
|
|
|
};
|
|
|
|
|
2019-03-18 20:59:34 +01:00
|
|
|
nativeBuildInputs = with pkgs; [
|
2019-06-15 18:44:41 +02:00
|
|
|
swig qt5.qmake cmake
|
2019-03-18 20:59:34 +01:00
|
|
|
];
|
|
|
|
|
2019-01-13 15:46:17 +01:00
|
|
|
buildInputs = with pkgs; with xorg; [
|
2019-06-15 18:44:41 +02:00
|
|
|
coin3d soqt qt5.qtbase
|
2019-11-10 17:44:34 +01:00
|
|
|
libGLU libGL
|
2019-01-13 15:46:17 +01:00
|
|
|
libXi libXext libSM libICE libX11
|
|
|
|
];
|
2018-10-29 22:38:11 +01:00
|
|
|
|
2019-06-15 18:44:41 +02:00
|
|
|
NIX_CFLAGS_COMPILE = [
|
|
|
|
"-I${pkgs.qt5.qtbase.dev}/include/QtCore"
|
|
|
|
"-I${pkgs.qt5.qtbase.dev}/include/QtGui"
|
|
|
|
"-I${pkgs.qt5.qtbase.dev}/include/QtOpenGL"
|
|
|
|
"-I${pkgs.qt5.qtbase.dev}/include/QtWidgets"
|
|
|
|
];
|
|
|
|
|
2019-09-10 18:34:16 +02:00
|
|
|
dontUseQmakeConfigure = true;
|
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
|
2019-06-15 18:44:41 +02:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace CMakeLists.txt --replace \$'{SoQt_INCLUDE_DIRS}' \
|
|
|
|
\$'{Coin_INCLUDE_DIR}'\;\$'{SoQt_INCLUDE_DIRS}'
|
|
|
|
'';
|
|
|
|
|
2018-10-29 22:38:11 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://pivy.coin3d.org/;
|
|
|
|
description = "A Python binding for Coin";
|
|
|
|
license = licenses.bsd0;
|
2019-09-10 18:34:16 +02:00
|
|
|
maintainers = with maintainers; [ gebner ];
|
2018-10-29 22:38:11 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|