Merge pull request #317727 from viraptor/aubio-darwin

python311Packages.aubio: fix darwin build
This commit is contained in:
Stanisław Pitucha
2024-06-07 15:01:16 +10:00
committed by GitHub
@@ -2,6 +2,7 @@
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
setuptools,
numpy,
pytestCheckHook,
@@ -21,6 +22,15 @@ buildPythonPackage rec {
hash = "sha256-RvzhB1kQNP0IbAygwH2RBi/kSyuFPAHgsiCATPeMHTo=";
};
patches = [
(fetchpatch {
# fix "incompatible function pointer types initializing 'PyUFuncGenericFunction'"
name = "const-function-signature.patch";
url = "https://github.com/aubio/aubio/commit/95ff046c698156f21e2ca0d1d8a02c23ab76969f.patch";
hash = "sha256-qKcIPjpcZUizSN/t96WOiOn+IlsrlC0+g7gW77KejH0=";
})
];
buildInputs = lib.optionals stdenv.isDarwin (
with darwin.apple_sdk.frameworks;
[