Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / pivy / default.nix
blob9d0b7f65f63621ed950d6b17adab6e1a84f10ca7
1 { lib, buildPythonPackage, fetchFromGitHub, pkgs, qtbase, qmake, soqt }:
3 buildPythonPackage rec {
4   pname = "pivy";
5   version = "0.6.8";
7   src = fetchFromGitHub {
8     owner = "coin3d";
9     repo = "pivy";
10     rev = "refs/tags/${version}";
11     hash = "sha256-y72nzZAelyRDR2JS73/0jo2x/XiDZpsERPZV3gzIhAI=";
12   };
14   dontUseCmakeConfigure = true;
16   nativeBuildInputs = with pkgs; [
17     swig qmake cmake
18   ];
20   buildInputs = with pkgs; with xorg; [
21     coin3d soqt qtbase
22     libGLU libGL
23     libXi libXext libSM libICE libX11
24   ];
26   env.NIX_CFLAGS_COMPILE = toString [
27     "-I${qtbase.dev}/include/QtCore"
28     "-I${qtbase.dev}/include/QtGui"
29     "-I${qtbase.dev}/include/QtOpenGL"
30     "-I${qtbase.dev}/include/QtWidgets"
31   ];
33   dontUseQmakeConfigure = true;
34   dontWrapQtApps =true;
35   doCheck = false;
37   postPatch = ''
38     substituteInPlace distutils_cmake/CMakeLists.txt --replace \$'{SoQt_INCLUDE_DIRS}' \
39       \$'{Coin_INCLUDE_DIR}'\;\$'{SoQt_INCLUDE_DIRS}'
40   '';
42   meta = with lib; {
43     homepage = "https://github.com/coin3d/pivy/";
44     description = "A Python binding for Coin";
45     license = licenses.bsd0;
46     maintainers = with maintainers; [ gebner ];
47   };