Merge pull request #197087 from mjmaurer/fix/pypackage-poetry-m1

python3Packages.poetry: fix thread crashes in tests on aarch64-darwin
This commit is contained in:
Robert Scott 2022-10-22 13:30:11 +01:00 committed by GitHub
commit c1989c17e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 = [