blob: 3dac3be49dff60ad0d6863452cee5184f69c0f36 (
plain)
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
|
{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
numpy,
fluidsynth,
stdenv,
}:
buildPythonPackage rec {
pname = "pyfluidsynth";
version = "1.3.4";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-ynQcJity5IljFJxzv4roDkXITCPJvfgDomujJMuy1bI=";
};
postPatch = ''
substituteInPlace fluidsynth.py \
--replace-fail \
"find_library(lib_name)" \
'"${lib.getLib fluidsynth}/lib/libfluidsynth${stdenv.hostPlatform.extensions.sharedLibrary}"'
'';
build-system = [ setuptools ];
dependencies = [ numpy ];
pythonImportsCheck = [ "fluidsynth" ];
meta = {
description = "Python bindings for FluidSynth, a MIDI synthesizer that uses SoundFont instruments";
homepage = "https://github.com/nwhitehead/pyfluidsynth";
license = lib.licenses.lgpl21Plus;
maintainers = [ ];
};
}
|