python3Packages.poetry: fix thread crashes in tests on aarch64-darwin

This commit is contained in:
Michael Maurer 2022-10-21 12:45:03 -04:00
parent 45454cd8ed
commit 511fdd09d2

View File

@ -106,8 +106,15 @@ buildPythonPackage rec {
pytest-xdist
];
preCheck = ''
preCheck = (''
export HOME=$TMPDIR
'' + lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) ''
# https://github.com/python/cpython/issues/74570#issuecomment-1093748531
export no_proxy='*';
'');
postCheck = lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) ''
unset no_proxy
'';
disabledTests = [