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

49 lines
1.1 KiB
Nix
Raw Normal View History

2020-09-07 15:55:46 +00:00
{ stdenv, buildPythonPackage, fetchFromGitHub, pkgs, qtbase, qmake, soqt }:
buildPythonPackage rec {
pname = "pivy";
2020-09-26 10:53:25 +00:00
version = "0.6.5";
src = fetchFromGitHub {
2020-09-26 10:53:25 +00:00
owner = "coin3d";
repo = "pivy";
rev = version;
2020-09-26 10:53:25 +00:00
sha256 = "0vids7sxk8w5vr73xdnf8xdci71a7syl6cd35aiisppbqyyfmykx";
};
2019-03-18 19:59:34 +00:00
nativeBuildInputs = with pkgs; [
2020-09-07 15:53:37 +00:00
swig qmake cmake
2019-03-18 19:59:34 +00:00
];
buildInputs = with pkgs; with xorg; [
2020-09-07 15:53:37 +00:00
coin3d soqt 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 [
2020-09-07 15:53:37 +00:00
"-I${qtbase.dev}/include/QtCore"
"-I${qtbase.dev}/include/QtGui"
"-I${qtbase.dev}/include/QtOpenGL"
"-I${qtbase.dev}/include/QtWidgets"
];
2019-09-10 16:34:16 +00: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 16:34:16 +00:00
maintainers = with maintainers; [ gebner ];
};
}