nixpkgs/pkgs/development/python-modules/rtmidi-python/default.nix
Orivej Desh 61d95bbd40 python39Packages.rtmidi-python: fix build
Pregenerated rtmidi_python.cpp is incompatible with Python 3.9.
2020-12-08 00:13:43 +00:00

35 lines
722 B
Nix

{ lib, buildPythonPackage, fetchPypi, cython, alsaLib }:
buildPythonPackage rec {
pname = "rtmidi-python";
version = "0.2.2";
src = fetchPypi {
inherit pname version;
sha256 = "1wpcaxfpbmsjc78g8841kpixr0a3v6zn0ak058s3mm25kcysp4m0";
};
postPatch = ''
rm rtmidi_python.cpp
'';
nativeBuildInputs = [ cython ];
buildInputs = [ alsaLib ];
setupPyBuildFlags = [ "--from-cython" ];
# package has no tests
doCheck = false;
pythonImportsCheck = [
"rtmidi_python"
];
meta = with lib; {
description = "Python wrapper for RtMidi";
homepage = "https://github.com/superquadratic/rtmidi-python";
license = licenses.mit;
maintainers = with maintainers; [ hexa ];
};
}