depot/third_party/nixpkgs/pkgs/development/python-modules/pivy/default.nix
Default email 439a6efcab Project import generated by Copybara.
GitOrigin-RevId: f6b5bfdb470d60a876992749d0d708ed7b6b56ca
2021-02-24 18:30:23 +00:00

49 lines
1.1 KiB
Nix

{ lib, buildPythonPackage, fetchFromGitHub, pkgs, qtbase, qmake, soqt }:
buildPythonPackage rec {
pname = "pivy";
version = "0.6.5";
src = fetchFromGitHub {
owner = "coin3d";
repo = "pivy";
rev = version;
sha256 = "0vids7sxk8w5vr73xdnf8xdci71a7syl6cd35aiisppbqyyfmykx";
};
dontUseCmakeConfigure = true;
nativeBuildInputs = with pkgs; [
swig qmake cmake
];
buildInputs = with pkgs; with xorg; [
coin3d soqt qtbase
libGLU libGL
libXi libXext libSM libICE libX11
];
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 CMakeLists.txt --replace \$'{SoQt_INCLUDE_DIRS}' \
\$'{Coin_INCLUDE_DIR}'\;\$'{SoQt_INCLUDE_DIRS}'
'';
meta = with lib; {
homepage = "https://github.com/coin3d/pivy/";
description = "A Python binding for Coin";
license = licenses.bsd0;
maintainers = with maintainers; [ gebner ];
};
}