Merge pull request #325305 from natsukium/statsmodels/darwin

python312Packages.statsmodels: fix darwin build
This commit is contained in:
Aleksana 2024-07-09 11:50:11 +08:00 committed by GitHub
commit e5dfb653d8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -39,6 +39,13 @@ buildPythonPackage rec {
setuptools-scm setuptools-scm
]; ];
env = lib.optionalAttrs stdenv.cc.isClang {
NIX_CFLAGS_COMPILE = toString [
"-Wno-error=implicit-function-declaration"
"-Wno-error=int-conversion"
];
};
dependencies = [ dependencies = [
numpy numpy
packaging packaging
@ -57,7 +64,5 @@ buildPythonPackage rec {
homepage = "https://www.github.com/statsmodels/statsmodels"; homepage = "https://www.github.com/statsmodels/statsmodels";
changelog = "https://github.com/statsmodels/statsmodels/releases/tag/v${version}"; changelog = "https://github.com/statsmodels/statsmodels/releases/tag/v${version}";
license = licenses.bsd3; license = licenses.bsd3;
# Fails at build time
broken = stdenv.isDarwin;
}; };
} }