python3Packages.pyopengl-accelerate: fix build with numpy 2 and gcc 14 (#369043)

This commit is contained in:
Theodore Ni
2025-01-03 02:13:00 -06:00
committed by GitHub
@@ -19,6 +19,11 @@ buildPythonPackage rec {
hash = "sha256-KxI2ISc6k59/0uwidUHjmfm11OgV1prgvbG2xwopNoA=";
};
postPatch = ''
substituteInPlace src/numpy_formathandler.pyx \
--replace-fail 'Py_intptr_t' 'npy_intp'
'';
nativeBuildInputs = [
cython
numpy
@@ -26,6 +31,11 @@ buildPythonPackage rec {
wheel
];
env.NIX_CFLAGS_COMPILE = toString [
"-Wno-error=int-conversion"
"-Wno-error=incompatible-pointer-types"
];
meta = {
description = "This set of C (Cython) extensions provides acceleration of common operations for slow points in PyOpenGL 3.x";
homepage = "https://pyopengl.sourceforge.net/";