soundfile: Fix build on aarch64-darwin
This commit is contained in:
parent
cf5d5a6f50
commit
955c24d11f
1 changed files with 13 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, fetchpatch
|
||||
, pytest
|
||||
, numpy
|
||||
, libsndfile
|
||||
|
@ -19,10 +20,22 @@ buildPythonPackage rec {
|
|||
sha256 = "0yqhrfz7xkvqrwdxdx2ydy4h467sk7z3gf984y1x2cq7cm1gy329";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Fix build on macOS arm64, https://github.com/bastibe/python-soundfile/pull/332
|
||||
(fetchpatch {
|
||||
url = "https://github.com/bastibe/python-soundfile/commit/e554e9ce8bed96207d587e6aa661e4b08f1c6a79.patch";
|
||||
sha256 = "sha256-vu/7s5q4I3yBnoNHmmFmcXvOLFcPwY9ri9ri6cKLDwU=";
|
||||
})
|
||||
];
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
propagatedBuildInputs = [ numpy libsndfile cffi ];
|
||||
propagatedNativeBuildInputs = [ cffi ];
|
||||
|
||||
# Test fails on aarch64-darwin with `MemoryError`, 53 failed, 31 errors, see
|
||||
# https://github.com/bastibe/python-soundfile/issues/331
|
||||
doCheck = stdenv.system != "aarch64-darwin";
|
||||
|
||||
meta = {
|
||||
description = "An audio library based on libsndfile, CFFI and NumPy";
|
||||
license = lib.licenses.bsd3;
|
||||
|
|
Loading…
Reference in a new issue