2020-12-09 12:39:15 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, cython, alsaLib }:
|
2020-07-18 16:06:22 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "rtmidi-python";
|
|
|
|
version = "0.2.2";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "1wpcaxfpbmsjc78g8841kpixr0a3v6zn0ak058s3mm25kcysp4m0";
|
|
|
|
};
|
|
|
|
|
2020-12-09 12:39:15 +00:00
|
|
|
postPatch = ''
|
|
|
|
rm rtmidi_python.cpp
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cython ];
|
2020-07-18 16:06:22 +00:00
|
|
|
buildInputs = [ alsaLib ];
|
|
|
|
|
2020-12-09 12:39:15 +00:00
|
|
|
setupPyBuildFlags = [ "--from-cython" ];
|
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
# 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;
|
2021-05-03 20:48:10 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-07-18 16:06:22 +00:00
|
|
|
};
|
|
|
|
}
|