18 # optional-dependencies
29 buildPythonPackage rec {
34 disabled = pythonOlder "3.7";
37 inherit pname version;
38 hash = "sha256-Ouootu1zD3N9WxLaNXjevp3FAFj6Nw/pzt7ZGJtnw0g=";
43 src = ./libportmidi-cdll.patch;
44 libportmidi = "${portmidi.out}/lib/libportmidi${stdenv.hostPlatform.extensions.sharedLibrary}";
53 pythonRelaxDeps = [ "packaging" ];
55 dependencies = [ packaging ];
57 optional-dependencies = {
58 ports-pygame = [ pygame ];
59 ports-rtmidi = [ python-rtmidi ];
60 ports-rtmidi-python = [ rtmidi-python ];
63 nativeCheckInputs = [ pytestCheckHook ];
65 pythonImportsCheck = [ "mido" ];
68 description = "MIDI Objects for Python";
69 homepage = "https://mido.readthedocs.io";
70 changelog = "https://github.com/mido/mido/releases/tag/${version}";
71 license = licenses.mit;