[staging-next] python313Packages.astropy: fix clang build (#366757)

This commit is contained in:
Martin Weinelt
2024-12-21 00:01:58 +01:00
committed by GitHub
@@ -62,6 +62,10 @@ buildPythonPackage rec {
hash = "sha256-6S18n+6G6z34cU5d1Bu/nxY9ND4aGD2Vv2vQnkMTyUA=";
};
env = lib.optionalAttrs stdenv.cc.isClang {
NIX_CFLAGS_COMPILE = "-Wno-error=unused-command-line-argument";
};
build-system = [
cython
extension-helpers
@@ -126,6 +130,8 @@ buildPythonPackage rec {
pythonImportsCheck = [ "astropy" ];
__darwinAllowLocalNetworking = true;
# Not running it inside the build directory. See:
# https://github.com/astropy/astropy/issues/15316#issuecomment-1722190547
preCheck = ''