diff --git a/pkgs/development/python-modules/rtmidi-python/default.nix b/pkgs/development/python-modules/rtmidi-python/default.nix index 68927cc9ca0..a1d8102fecc 100644 --- a/pkgs/development/python-modules/rtmidi-python/default.nix +++ b/pkgs/development/python-modules/rtmidi-python/default.nix @@ -1,6 +1,4 @@ -{ lib, buildPythonPackage, fetchPypi -, alsaLib -}: +{ lib, buildPythonPackage, fetchPypi, cython, alsaLib }: buildPythonPackage rec { pname = "rtmidi-python"; @@ -11,8 +9,15 @@ buildPythonPackage rec { sha256 = "1wpcaxfpbmsjc78g8841kpixr0a3v6zn0ak058s3mm25kcysp4m0"; }; + postPatch = '' + rm rtmidi_python.cpp + ''; + + nativeBuildInputs = [ cython ]; buildInputs = [ alsaLib ]; + setupPyBuildFlags = [ "--from-cython" ]; + # package has no tests doCheck = false;