python3Packages.pyfluidsynth: 1.3.3 -> 1.3.4
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user