blob: f037b3c4badac2afb0570be303cad22e241a541a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
{ lib
, buildPythonPackage
, fetchPypi
, setuptools
, wheel
, numpy
, fluidsynth
, stdenv
}:
buildPythonPackage rec {
pname = "pyfluidsynth";
version = "1.3.3";
format = "pyproject";
src = fetchPypi {
pname = "pyFluidSynth";
inherit version;
hash = "sha256-1Q1LVQc+dYCyo8pHCZK2xRwnnbocVRLchRNVlfQtaIE=";
};
nativeBuildInputs = [
setuptools
wheel
];
propagatedBuildInputs = [
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";
license = licenses.lgpl21Plus;
maintainers = with maintainers; [ figsoda ];
};
}
|