diff --git a/pkgs/development/python-modules/pyfluidsynth/default.nix b/pkgs/development/python-modules/pyfluidsynth/default.nix index 838ecd29dbfa..de35f66d2a60 100644 --- a/pkgs/development/python-modules/pyfluidsynth/default.nix +++ b/pkgs/development/python-modules/pyfluidsynth/default.nix @@ -3,7 +3,6 @@ buildPythonPackage, fetchPypi, setuptools, - wheel, numpy, fluidsynth, stdenv, @@ -11,29 +10,27 @@ buildPythonPackage rec { pname = "pyfluidsynth"; - version = "1.3.3"; + version = "1.3.4"; format = "pyproject"; src = fetchPypi { - pname = "pyFluidSynth"; - inherit version; - hash = "sha256-1Q1LVQc+dYCyo8pHCZK2xRwnnbocVRLchRNVlfQtaIE="; + inherit pname version; + hash = "sha256-ynQcJity5IljFJxzv4roDkXITCPJvfgDomujJMuy1bI="; }; - nativeBuildInputs = [ - setuptools - wheel - ]; + postPatch = '' + substituteInPlace fluidsynth.py \ + --replace-fail \ + "find_library(lib_name)" \ + '"${lib.getLib fluidsynth}/lib/libfluidsynth${stdenv.hostPlatform.extensions.sharedLibrary}"' + ''; - propagatedBuildInputs = [ numpy ]; + build-system = [ setuptools ]; + + dependencies = [ numpy ]; pythonImportsCheck = [ "fluidsynth" ]; - postPatch = '' - sed -Ezi fluidsynth.py -e \ - 's|lib = .*\\\n[^\n]*|lib = "${lib.getLib fluidsynth}/lib/libfluidsynth${stdenv.hostPlatform.extensions.sharedLibrary}"|' - ''; - meta = with lib; { description = "Python bindings for FluidSynth, a MIDI synthesizer that uses SoundFont instruments"; homepage = "https://github.com/nwhitehead/pyfluidsynth";