python3Packages.pivy: remove unused buildInputs

This commit is contained in:
qbisi
2025-09-30 11:57:39 +08:00
parent 6d713db4ef
commit 2060d3945c
2 changed files with 19 additions and 37 deletions
@@ -3,10 +3,11 @@
buildPythonPackage,
fetchFromGitHub,
setuptools,
pkgs,
qtbase,
qmake,
swig,
cmake,
coin3d,
soqt,
libGLU,
}:
buildPythonPackage rec {
@@ -21,54 +22,36 @@ buildPythonPackage rec {
hash = "sha256-DRA4NTAHg2iB/D1CU9pJEpsZwX9GW3X5gpxbIwP54Ko=";
};
# https://github.com/coin3d/pivy/pull/138
# FindThreads only works if either C or CXX language is enabled
postPatch = ''
substituteInPlace distutils_cmake/CMakeLists.txt \
--replace-fail 'project(pivy_cmake_setup NONE)' 'project(pivy_cmake_setup CXX)'
'';
build-system = [ setuptools ];
dontUseCmakeConfigure = true;
nativeBuildInputs = with pkgs; [
nativeBuildInputs = [
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"
buildInputs = [
coin3d
soqt
libGLU # dummy buildInput that provides missing header <GL/glu.h>
];
dontUseQmakeConfigure = true;
dontWrapQtApps = true;
doCheck = false;
postPatch = ''
substituteInPlace distutils_cmake/CMakeLists.txt --replace \$'{SoQt_INCLUDE_DIRS}' \
\$'{Coin_INCLUDE_DIR}'\;\$'{SoQt_INCLUDE_DIRS}'
'';
pythonImportsCheck = [ "pivy" ];
meta = with lib; {
meta = {
homepage = "https://github.com/coin3d/pivy/";
description = "Python binding for Coin";
license = licenses.bsd0;
maintainers = with maintainers; [ ];
license = lib.licenses.bsd0;
maintainers = with lib.maintainers; [ ];
};
}
-1
View File
@@ -11849,7 +11849,6 @@ self: super: with self; {
piqp = callPackage ../development/python-modules/piqp { };
pivy = callPackage ../development/python-modules/pivy {
inherit (pkgs.qt5) qtbase qmake;
inherit (pkgs.libsForQt5) soqt;
};