nixpkgs/pkgs/development/python-modules/pivy/default.nix
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
Long term we should move everything over to `pyproject = true`, but in
the mean time we can work towards deprecating the implicit `format` paremeter.

cc https://github.com/NixOS/nixpkgs/issues/253154
cc @mweinelt @figsoda
2023-12-07 17:46:49 +01:00

51 lines
1.2 KiB
Nix

{ lib, buildPythonPackage, fetchFromGitHub, pkgs, qtbase, qmake, soqt }:
buildPythonPackage rec {
pname = "pivy";
version = "0.6.8";
format = "setuptools";
src = fetchFromGitHub {
owner = "coin3d";
repo = "pivy";
rev = "refs/tags/${version}";
hash = "sha256-y72nzZAelyRDR2JS73/0jo2x/XiDZpsERPZV3gzIhAI=";
};
dontUseCmakeConfigure = true;
nativeBuildInputs = with pkgs; [
swig qmake cmake
];
buildInputs = with pkgs; with xorg; [
coin3d soqt qtbase
libGLU libGL
libXi libXext libSM libICE libX11
];
env.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 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;
maintainers = with maintainers; [ gebner ];
};
}