Unverified Commit 10b96c5c authored by Stanisław Pitucha's avatar Stanisław Pitucha Committed by GitHub
Browse files

Merge pull request #317727 from viraptor/aubio-darwin

python311Packages.aubio: fix darwin build
parents 02cdc30c 8c1fd258
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -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;
    [