diff options
author | Stanisław Pitucha <git@viraptor.info> | 2024-06-07 15:01:16 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-07 15:01:16 +1000 |
commit | 10b96c5cd77043bfcf08d2ae4fef7238b61fbe1f (patch) | |
tree | b77f23e9431cf55b54bddfa3baf58d8476ca629a /pkgs/development | |
parent | 02cdc30c176b8a041a2f59646b39eed97ef243d0 (diff) | |
parent | 8c1fd258b1d0b1ff98803e18d3e7b4bd02df32c2 (diff) |
Merge pull request #317727 from viraptor/aubio-darwin
python311Packages.aubio: fix darwin build
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/python-modules/aubio/default.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/aubio/default.nix b/pkgs/development/python-modules/aubio/default.nix index f6766bd56a536..a250c710d7d6d 100644 --- a/pkgs/development/python-modules/aubio/default.nix +++ b/pkgs/development/python-modules/aubio/default.nix @@ -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; [ |