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

This commit is contained in:
Frank Moda 2022-09-27 19:32:38 -04:00
parent f28b6e5468
commit 879e6c7192

View File

@ -80,6 +80,15 @@ buildPythonPackage rec {
requests
];
preCheck = 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
'';
# Override default arguments in pytest.ini
pytestFlagsArray = [
"--timeout=0"