2022-02-21 08:47:16 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPy27
|
|
|
|
, pkg-config
|
|
|
|
, alsa-lib
|
|
|
|
, libjack2
|
|
|
|
, tox
|
|
|
|
, flake8
|
|
|
|
, alabaster
|
|
|
|
, CoreAudio
|
|
|
|
, CoreMIDI
|
|
|
|
, CoreServices
|
2020-07-18 16:06:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-rtmidi";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "1.4.9";
|
2020-07-18 16:06:22 +00:00
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-28 23:13:55 +00:00
|
|
|
sha256 = "bfeb4ed99d0cccf6fa2837566907652ded7adc1c03b69f2160c9de4082301302";
|
2020-07-18 16:06:22 +00:00
|
|
|
};
|
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2022-02-21 08:47:16 +00:00
|
|
|
buildInputs = [
|
|
|
|
libjack2
|
|
|
|
] ++ lib.optionals stdenv.isLinux [
|
|
|
|
alsa-lib
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
CoreAudio
|
|
|
|
CoreMIDI
|
|
|
|
CoreServices
|
|
|
|
];
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2020-07-18 16:06:22 +00:00
|
|
|
tox
|
|
|
|
flake8
|
|
|
|
alabaster
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A Python binding for the RtMidi C++ library implemented using Cython";
|
|
|
|
homepage = "https://chrisarndt.de/projects/python-rtmidi/";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ hexa ];
|
|
|
|
};
|
|
|
|
}
|