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