nixpkgs/pkgs/development/python-modules/pivy/default.nix

49 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv, buildPythonPackage, fetchFromGitHub, pkgs }:
buildPythonPackage rec {
pname = "pivy";
version = "0.6.5a2";
src = fetchFromGitHub {
owner = "FreeCAD";
repo = "pivy";
rev = version;
sha256 = "1w03jaha36bjyfaz8hchnv8yrkm5715w15crhd3qrlagz8fs38hm";
};
2019-03-18 19:59:34 +00:00
nativeBuildInputs = with pkgs; [
swig qt5.qmake cmake
2019-03-18 19:59:34 +00:00
];
buildInputs = with pkgs; with xorg; [
coin3d soqt qt5.qtbase
2019-11-10 16:44:34 +00:00
libGLU libGL
libXi libXext libSM libICE libX11
];
2019-10-30 01:29:30 +00:00
NIX_CFLAGS_COMPILE = toString [
"-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 17:34:16 +01:00
dontUseQmakeConfigure = true;
dontUseCmakeConfigure = true;
doCheck = false;
postPatch = ''
substituteInPlace CMakeLists.txt --replace \$'{SoQt_INCLUDE_DIRS}' \
\$'{Coin_INCLUDE_DIR}'\;\$'{SoQt_INCLUDE_DIRS}'
'';
meta = with stdenv.lib; {
homepage = "https://github.com/coin3d/pivy/";
description = "A Python binding for Coin";
license = licenses.bsd0;
2019-09-10 17:34:16 +01:00
maintainers = with maintainers; [ gebner ];
};
}