2021-04-27 17:24:29 +01:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, substituteAll
|
|
|
|
, portmidi
|
|
|
|
, pygame
|
|
|
|
, python-rtmidi
|
|
|
|
, rtmidi-python
|
|
|
|
, pytestCheckHook
|
2020-06-22 21:10:40 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mido";
|
|
|
|
version = "1.2.9";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "1k3sgkxc7j49bapib3b5jnircb1yhyyd8mi0mbfd78zgix9db9y4";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./libportmidi-cdll.patch;
|
|
|
|
libportmidi = "${portmidi.out}/lib/libportmidi${stdenv.targetPlatform.extensions.sharedLibrary}";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pygame
|
|
|
|
python-rtmidi
|
|
|
|
rtmidi-python
|
|
|
|
];
|
|
|
|
|
2021-04-27 17:24:29 +01:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"mido"
|
|
|
|
];
|
2020-06-22 21:10:40 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "MIDI Objects for Python";
|
|
|
|
homepage = "https://mido.readthedocs.io";
|
|
|
|
license = licenses.mit;
|
2021-04-27 17:25:06 +01:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-06-22 21:10:40 +01:00
|
|
|
};
|
|
|
|
}
|