1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-24 02:00:41 +03:00
nixpkgs/pkgs/development/python-modules/mido/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
829 B
Nix
Raw Normal View History

{ stdenv
, lib
, buildPythonPackage
, fetchPypi
, substituteAll
, portmidi
, python-rtmidi
, pytestCheckHook
2020-06-22 22:10:40 +02:00
}:
buildPythonPackage rec {
pname = "mido";
2021-06-18 23:47:25 +02:00
version = "1.2.10";
2020-06-22 22:10:40 +02:00
src = fetchPypi {
inherit pname version;
2021-06-18 23:47:25 +02:00
sha256 = "17b38a8e4594497b850ec6e78b848eac3661706bfc49d484a36d91335a373499";
2020-06-22 22:10:40 +02:00
};
patches = [
(substituteAll {
src = ./libportmidi-cdll.patch;
libportmidi = "${portmidi.out}/lib/libportmidi${stdenv.targetPlatform.extensions.sharedLibrary}";
})
];
propagatedBuildInputs = [
python-rtmidi
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"mido"
];
2020-06-22 22:10:40 +02:00
meta = with lib; {
description = "MIDI Objects for Python";
homepage = "https://mido.readthedocs.io";
license = licenses.mit;
maintainers = with maintainers; [ ];
2020-06-22 22:10:40 +02:00
};
}