2022-02-21 08:47:16 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, alabaster
|
2023-08-10 07:59:29 +00:00
|
|
|
, alsa-lib
|
|
|
|
, buildPythonPackage
|
2022-02-21 08:47:16 +00:00
|
|
|
, CoreAudio
|
|
|
|
, CoreMIDI
|
|
|
|
, CoreServices
|
2023-08-22 20:05:09 +00:00
|
|
|
, cython_3
|
2023-08-10 07:59:29 +00:00
|
|
|
, fetchPypi
|
|
|
|
, flake8
|
|
|
|
, libjack2
|
|
|
|
, meson-python
|
2023-08-22 20:05:09 +00:00
|
|
|
, ninja
|
2023-08-10 07:59:29 +00:00
|
|
|
, pkg-config
|
|
|
|
, pythonOlder
|
|
|
|
, tox
|
2023-08-22 20:05:09 +00:00
|
|
|
, wheel
|
2020-07-18 16:06:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-rtmidi";
|
2023-08-22 20:05:09 +00:00
|
|
|
version = "1.5.5";
|
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;
|
2023-08-22 20:05:09 +00:00
|
|
|
hash = "sha256-Pz6bD6SX6BPMC91zsorgeXfJGAPk1VULx8ejShUBy94=";
|
2020-07-18 16:06:22 +00:00
|
|
|
};
|
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
nativeBuildInputs = [
|
2023-08-22 20:05:09 +00:00
|
|
|
cython_3
|
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
|
|
|
];
|
|
|
|
|
2022-02-21 08:47:16 +00:00
|
|
|
buildInputs = [
|
|
|
|
libjack2
|
|
|
|
] ++ lib.optionals stdenv.isLinux [
|
|
|
|
alsa-lib
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
CoreAudio
|
|
|
|
CoreMIDI
|
|
|
|
CoreServices
|
|
|
|
];
|
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
|
|
|
|
];
|
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"rtmidi"
|
|
|
|
];
|
|
|
|
|
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;
|
|
|
|
maintainers = with maintainers; [ hexa ];
|
|
|
|
};
|
|
|
|
}
|