Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

74 lines
1.3 KiB
Nix

{
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 = [ ];
};
}