2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
alabaster,
|
|
|
|
alsa-lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
CoreAudio,
|
|
|
|
CoreMIDI,
|
|
|
|
CoreServices,
|
|
|
|
Foundation,
|
|
|
|
cython,
|
|
|
|
fetchPypi,
|
|
|
|
flake8,
|
|
|
|
libjack2,
|
|
|
|
meson-python,
|
|
|
|
ninja,
|
|
|
|
pkg-config,
|
|
|
|
pythonOlder,
|
|
|
|
tox,
|
|
|
|
wheel,
|
2020-07-18 16:06:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-rtmidi";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "1.5.8";
|
2023-08-10 07:59:29 +00:00
|
|
|
format = "pyproject";
|
2023-05-24 13:37:59 +00:00
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2020-07-18 16:06:22 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2023-08-10 07:59:29 +00:00
|
|
|
pname = "python_rtmidi";
|
|
|
|
inherit version;
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-f5reaLBorgkADstWKulSHaOiNDYa1USeg/xzRUTQBPo=";
|
2020-07-18 16:06:22 +00:00
|
|
|
};
|
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
nativeBuildInputs = [
|
2024-04-21 15:54:59 +00:00
|
|
|
cython
|
2023-08-10 07:59:29 +00:00
|
|
|
meson-python
|
2023-08-22 20:05:09 +00:00
|
|
|
ninja
|
2023-08-10 07:59:29 +00:00
|
|
|
pkg-config
|
2023-08-22 20:05:09 +00:00
|
|
|
wheel
|
2023-08-10 07:59:29 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
buildInputs =
|
|
|
|
[ ]
|
|
|
|
++ lib.optionals stdenv.isLinux [
|
|
|
|
libjack2
|
|
|
|
alsa-lib
|
|
|
|
]
|
|
|
|
++ lib.optionals stdenv.isDarwin [
|
|
|
|
CoreAudio
|
|
|
|
CoreMIDI
|
|
|
|
CoreServices
|
|
|
|
Foundation
|
|
|
|
];
|
2023-08-10 07:59:29 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2020-07-18 16:06:22 +00:00
|
|
|
tox
|
|
|
|
flake8
|
|
|
|
alabaster
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "rtmidi" ];
|
2023-08-10 07:59:29 +00:00
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A Python binding for the RtMidi C++ library implemented using Cython";
|
2023-05-24 13:37:59 +00:00
|
|
|
homepage = "https://github.com/SpotlightKid/python-rtmidi";
|
2023-08-10 07:59:29 +00:00
|
|
|
changelog = "https://github.com/SpotlightKid/python-rtmidi/blob/${version}/CHANGELOG.md";
|
2020-07-18 16:06:22 +00:00
|
|
|
license = licenses.mit;
|
2024-01-13 08:15:51 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-07-18 16:06:22 +00:00
|
|
|
};
|
|
|
|
}
|