0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00

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
commit bb950a23f3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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/";