pythonPackages.mido: init at 1.2.9

This commit is contained in:
Martin Weinelt
2020-06-22 22:10:40 +02:00
committed by Jon
parent 75f5c4381c
commit 8eb5780cc7
3 changed files with 60 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
{ stdenv, lib, buildPythonPackage, fetchPypi, substituteAll
, portmidi, pygame, python-rtmidi, rtmidi-python
, pytest
}:
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
];
checkInputs = [ pytest ];
checkPhase = ''
py.test . -rs -q
'';
meta = with lib; {
description = "MIDI Objects for Python";
homepage = "https://mido.readthedocs.io";
license = licenses.mit;
maintainers = with maintainers; [ hexa ];
};
}