mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 13:43:22 +00:00
2a5325d3cb
python-rtmidi includes the rtmidi C++ library as a submodule (which is unfortunate since rtmidi is separately packaged in nixpkgs already) and wraps it using Cython. Without these dependencies, python-rtmidi won't build support for ALSA or jack into the compiled rtmidi, and will only have the 'dummy' API available.
30 lines
711 B
Nix
30 lines
711 B
Nix
{ lib, buildPythonPackage, fetchPypi, isPy27
|
|
, pkg-config, alsaLib, libjack2, tox, flake8, alabaster
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-rtmidi";
|
|
version = "1.4.1";
|
|
disabled = isPy27;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "0b0y3hnjl2fvm3jyfvp1msfikp19vbqqqi7lawgy3azisvdyrgq7";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ alsaLib libjack2 ];
|
|
checkInputs = [
|
|
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 ];
|
|
};
|
|
}
|