mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 19:45:54 +00:00
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
|
||||
, 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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue