friture: fix build and crash (#437124)

This commit is contained in:
Peder Bergebakken Sundt
2025-08-28 17:55:08 +02:00
committed by GitHub
2 changed files with 4 additions and 7 deletions
+1
View File
@@ -19,6 +19,7 @@ python3Packages.buildPythonApplication rec {
postPatch = ''
sed -i -e 's/==.*"/"/' -e '/packages=\[/a "friture.playback",' pyproject.toml
sed -i -e 's/tostring/tobytes/' friture/spectrogram_image.py
'';
nativeBuildInputs =
@@ -10,14 +10,15 @@
buildPythonPackage rec {
pname = "pyopengl-accelerate";
version = "3.1.9";
version = "3.1.10";
format = "pyproject";
src = fetchPypi {
pname = "pyopengl_accelerate";
inherit version;
hash = "sha256-hZV8fHaXWBj/dZ7JJD+dxwke9vNz6jei61DDIP2ahvM=";
hash = "sha256-gnUcg/Cm9zK4tZI5kO3CRB04F2qYdWsXGOjWxDefWnE=";
};
build-system = [
cython
numpy
@@ -25,11 +26,6 @@ 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/";