at 23.05-pre 829 B view raw
1{ stdenv 2, lib 3, buildPythonPackage 4, fetchPypi 5, substituteAll 6, portmidi 7, python-rtmidi 8, pytestCheckHook 9}: 10 11buildPythonPackage rec { 12 pname = "mido"; 13 version = "1.2.10"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "17b38a8e4594497b850ec6e78b848eac3661706bfc49d484a36d91335a373499"; 18 }; 19 20 patches = [ 21 (substituteAll { 22 src = ./libportmidi-cdll.patch; 23 libportmidi = "${portmidi.out}/lib/libportmidi${stdenv.targetPlatform.extensions.sharedLibrary}"; 24 }) 25 ]; 26 27 propagatedBuildInputs = [ 28 python-rtmidi 29 ]; 30 31 checkInputs = [ 32 pytestCheckHook 33 ]; 34 35 pythonImportsCheck = [ 36 "mido" 37 ]; 38 39 meta = with lib; { 40 description = "MIDI Objects for Python"; 41 homepage = "https://mido.readthedocs.io"; 42 license = licenses.mit; 43 maintainers = with maintainers; [ ]; 44 }; 45}