Files
nixpkgs/pkgs/development/python-modules/python-rtmidi/default.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

63 lines
1.1 KiB
Nix

{
lib,
stdenv,
alabaster,
alsa-lib,
buildPythonPackage,
cython,
fetchPypi,
flake8,
libjack2,
meson-python,
ninja,
pkg-config,
pythonOlder,
tox,
wheel,
}:
buildPythonPackage rec {
pname = "python-rtmidi";
version = "1.5.8";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchPypi {
pname = "python_rtmidi";
inherit version;
hash = "sha256-f5reaLBorgkADstWKulSHaOiNDYa1USeg/xzRUTQBPo=";
};
nativeBuildInputs = [
cython
meson-python
ninja
pkg-config
wheel
];
buildInputs =
[ ]
++ lib.optionals stdenv.hostPlatform.isLinux [
libjack2
alsa-lib
];
nativeCheckInputs = [
tox
flake8
alabaster
];
pythonImportsCheck = [ "rtmidi" ];
meta = {
description = "Python binding for the RtMidi C++ library implemented using Cython";
homepage = "https://github.com/SpotlightKid/python-rtmidi";
changelog = "https://github.com/SpotlightKid/python-rtmidi/blob/${version}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = [ ];
};
}