python39Packages.rtmidi-python: fix build
Pregenerated rtmidi_python.cpp is incompatible with Python 3.9.
This commit is contained in:
parent
94ede7a646
commit
61d95bbd40
|
@ -1,6 +1,4 @@
|
||||||
{ lib, buildPythonPackage, fetchPypi
|
{ lib, buildPythonPackage, fetchPypi, cython, alsaLib }:
|
||||||
, alsaLib
|
|
||||||
}:
|
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "rtmidi-python";
|
pname = "rtmidi-python";
|
||||||
|
@ -11,8 +9,15 @@ buildPythonPackage rec {
|
||||||
sha256 = "1wpcaxfpbmsjc78g8841kpixr0a3v6zn0ak058s3mm25kcysp4m0";
|
sha256 = "1wpcaxfpbmsjc78g8841kpixr0a3v6zn0ak058s3mm25kcysp4m0";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
rm rtmidi_python.cpp
|
||||||
|
'';
|
||||||
|
|
||||||
|
nativeBuildInputs = [ cython ];
|
||||||
buildInputs = [ alsaLib ];
|
buildInputs = [ alsaLib ];
|
||||||
|
|
||||||
|
setupPyBuildFlags = [ "--from-cython" ];
|
||||||
|
|
||||||
# package has no tests
|
# package has no tests
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue