From 1322663a313f610744df5c0179ee63a143dbe953 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 19 Jan 2025 21:17:24 +0100 Subject: [PATCH] python3Packages.pyfluidsynth: 1.3.3 -> 1.3.4 --- .../python-modules/pyfluidsynth/default.nix | 27 +++++++++---------- 1 file changed, 12 insertions(+), 15 deletions(-) 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";