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:
commit
bb950a23f3
1 changed files with 10 additions and 0 deletions
|
@ -19,6 +19,11 @@ buildPythonPackage rec {
|
||||||
hash = "sha256-KxI2ISc6k59/0uwidUHjmfm11OgV1prgvbG2xwopNoA=";
|
hash = "sha256-KxI2ISc6k59/0uwidUHjmfm11OgV1prgvbG2xwopNoA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace src/numpy_formathandler.pyx \
|
||||||
|
--replace-fail 'Py_intptr_t' 'npy_intp'
|
||||||
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
cython
|
cython
|
||||||
numpy
|
numpy
|
||||||
|
@ -26,6 +31,11 @@ buildPythonPackage rec {
|
||||||
wheel
|
wheel
|
||||||
];
|
];
|
||||||
|
|
||||||
|
env.NIX_CFLAGS_COMPILE = toString [
|
||||||
|
"-Wno-error=int-conversion"
|
||||||
|
"-Wno-error=incompatible-pointer-types"
|
||||||
|
];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "This set of C (Cython) extensions provides acceleration of common operations for slow points in PyOpenGL 3.x";
|
description = "This set of C (Cython) extensions provides acceleration of common operations for slow points in PyOpenGL 3.x";
|
||||||
homepage = "https://pyopengl.sourceforge.net/";
|
homepage = "https://pyopengl.sourceforge.net/";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue