[staging-next] python313Packages.astropy: fix clang build (#366757)
This commit is contained in:
@@ -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 = ''
|
||||
|
||||
Reference in New Issue
Block a user