diff --git a/pkgs/development/python-modules/pyopengl-accelerate/default.nix b/pkgs/development/python-modules/pyopengl-accelerate/default.nix index f32d555d7589..c138af55ea6a 100644 --- a/pkgs/development/python-modules/pyopengl-accelerate/default.nix +++ b/pkgs/development/python-modules/pyopengl-accelerate/default.nix @@ -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/";