summary refs log tree commit diff
path: root/pkgs/development/python-modules/python-rtmidi/default.nix
blob: 781231749fdf595754ec6cf191fc1a2006360eb6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ lib, buildPythonPackage, fetchPypi, isPy27
, pkg-config, alsa-lib, libjack2, tox, flake8, alabaster
}:

buildPythonPackage rec {
  pname = "python-rtmidi";
  version = "1.4.7";
  disabled = isPy27;

  src = fetchPypi {
    inherit pname version;
    sha256 = "d7dbc2b174b09015dfbee449a672a072aa72b367be40b13e04ee35a2e2e399e3";
  };

  nativeBuildInputs = [ pkg-config ];
  buildInputs = [ alsa-lib 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 ];
  };
}