Merge pull request #215262 from wegank/soundfile-arch

python310Packages.soundfile: fix build on x86_64-darwin
This commit is contained in:
Weijia Wang 2023-02-08 07:15:50 +01:00 committed by GitHub
commit f662ac1d44
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,6 +29,10 @@ buildPythonPackage rec {
propagatedBuildInputs = [ numpy libsndfile cffi ];
propagatedNativeBuildInputs = [ cffi ];
preConfigure = lib.optionalString (stdenv.isDarwin && stdenv.isx86_64) ''
export PYSOUNDFILE_ARCHITECTURE=x86_64
'';
meta = {
description = "An audio library based on libsndfile, CFFI and NumPy";
license = lib.licenses.bsd3;