blob: cdb87a0c86573e239c7b5298d793c90019f1f413 (
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
41
42
43
44
45
46
47
48
49
|
{
lib,
stdenv,
buildPythonPackage,
fetchPypi,
cython_0,
alsa-lib,
CoreAudio,
CoreMIDI,
CoreServices,
}:
buildPythonPackage rec {
pname = "rtmidi-python";
version = "0.2.2";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "1wpcaxfpbmsjc78g8841kpixr0a3v6zn0ak058s3mm25kcysp4m0";
};
postPatch = ''
rm rtmidi_python.cpp
'';
nativeBuildInputs = [ cython_0 ];
buildInputs =
lib.optionals stdenv.hostPlatform.isLinux [ alsa-lib ]
++ lib.optionals stdenv.hostPlatform.isDarwin [
CoreAudio
CoreMIDI
CoreServices
];
setupPyBuildFlags = [ "--from-cython" ];
# package has no tests
doCheck = false;
pythonImportsCheck = [ "rtmidi_python" ];
meta = with lib; {
description = "Python wrapper for RtMidi";
homepage = "https://github.com/superquadratic/rtmidi-python";
license = licenses.mit;
maintainers = [ ];
};
}
|