3
0
Fork 0
forked from mirrors/nixpkgs

pythonPackages.pivy: 20101207 -> 0.6.5a2

This commit is contained in:
Gabriel Ebner 2019-06-15 18:44:41 +02:00
parent 2950c57a65
commit 611717602b

View file

@ -1,31 +1,40 @@
{ stdenv { stdenv, buildPythonPackage, fetchFromGitHub, pkgs }:
, buildPythonPackage
, fetchhg
, pkgs
, isPy3k
}:
buildPythonPackage rec { buildPythonPackage rec {
version = "20101207";
pname = "pivy"; pname = "pivy";
disabled = isPy3k; # Judging from SyntaxError version = "0.6.5a2";
src = fetchhg { src = fetchFromGitHub {
url = "https://bitbucket.org/Coin3D/pivy"; owner = "FreeCAD";
rev = "8eab90908f2a3adcc414347566f4434636202344"; repo = "pivy";
sha256 = "18n14ha2d3j3ghg2f2aqnf2mks94nn7ma9ii7vkiwcay93zm82cf"; rev = version;
sha256 = "1w03jaha36bjyfaz8hchnv8yrkm5715w15crhd3qrlagz8fs38hm";
}; };
nativeBuildInputs = with pkgs; [ nativeBuildInputs = with pkgs; [
swig1 coin3d soqt swig qt5.qmake cmake
]; ];
buildInputs = with pkgs; with xorg; [ buildInputs = with pkgs; with xorg; [
coin3d soqt coin3d soqt qt5.qtbase
libGLU_combined libGLU_combined
libXi libXext libSM libICE libX11 libXi libXext libSM libICE libX11
]; ];
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"
];
doCheck = false;
postPatch = ''
substituteInPlace CMakeLists.txt --replace \$'{SoQt_INCLUDE_DIRS}' \
\$'{Coin_INCLUDE_DIR}'\;\$'{SoQt_INCLUDE_DIRS}'
'';
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = http://pivy.coin3d.org/; homepage = http://pivy.coin3d.org/;
description = "A Python binding for Coin"; description = "A Python binding for Coin";