nixpkgs/pkgs/development/python-modules/python-rtmidi/default.nix
Graham Bennett 2a5325d3cb python-rtmidi: add alsaLib and libjack2 deps
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.
2020-07-26 14:13:26 +01:00

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 ];
};
}