Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.3 kB · 73 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374{ stdenv, lib, buildPythonPackage, fetchPypi, replaceVars,
# build-system setuptools, setuptools-scm,
# dependencies packaging,
# native dependencies portmidi,
# optional-dependencies pygame, python-rtmidi, rtmidi-python,
# tests pytestCheckHook, pythonOlder,
}:
buildPythonPackage rec { pname = "mido"; version = "1.3.3"; pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi { inherit pname version; hash = "sha256-GuyzC38oJATxfkN2jL90pqMb8is7eDvdEXoc6dIst0w="; };
patches = [ (replaceVars ./libportmidi-cdll.patch { libportmidi = "${portmidi.out}/lib/libportmidi${stdenv.hostPlatform.extensions.sharedLibrary}"; }) ];
build-system = [ setuptools setuptools-scm ];
pythonRelaxDeps = [ "packaging" ];
dependencies = [ packaging ];
optional-dependencies = { ports-pygame = [ pygame ]; ports-rtmidi = [ python-rtmidi ]; ports-rtmidi-python = [ rtmidi-python ]; };
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "mido" ];
meta = with lib; { description = "MIDI Objects for Python"; homepage = "https://mido.readthedocs.io"; changelog = "https://github.com/mido/mido/releases/tag/${version}"; license = licenses.mit; maintainers = [ ]; };}