1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-23 01:41:05 +03:00
nixpkgs/pkgs/development/python-modules/pivy/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

50 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, buildPythonPackage, fetchFromGitHub, pkgs, qtbase, qmake, soqt }:
buildPythonPackage rec {
pname = "pivy";
2022-01-13 16:58:38 -08:00
version = "0.6.6";
src = fetchFromGitHub {
2020-09-26 12:53:25 +02:00
owner = "coin3d";
repo = "pivy";
rev = version;
2022-01-13 16:58:38 -08:00
sha256 = "1xlynrbq22pb252r37r80b3myzap8hzhvknz4zfznfrsg9ykh8k2";
};
2021-02-23 11:20:47 +01:00
dontUseCmakeConfigure = true;
2019-03-18 20:59:34 +01:00
nativeBuildInputs = with pkgs; [
2020-09-07 10:53:37 -05:00
swig qmake cmake
2019-03-18 20:59:34 +01:00
];
buildInputs = with pkgs; with xorg; [
2020-09-07 10:53:37 -05:00
coin3d soqt qtbase
2019-11-10 16:44:34 +00:00
libGLU libGL
libXi libXext libSM libICE libX11
];
2019-10-30 02:29:30 +01:00
NIX_CFLAGS_COMPILE = toString [
2020-09-07 10:53:37 -05:00
"-I${qtbase.dev}/include/QtCore"
"-I${qtbase.dev}/include/QtGui"
"-I${qtbase.dev}/include/QtOpenGL"
"-I${qtbase.dev}/include/QtWidgets"
];
2019-09-10 18:34:16 +02:00
dontUseQmakeConfigure = true;
dontWrapQtApps =true;
doCheck = false;
postPatch = ''
2022-02-21 09:32:44 +01:00
substituteInPlace distutils_cmake/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;
2019-09-10 18:34:16 +02:00
maintainers = with maintainers; [ gebner ];
};
}