From 511fdd09d2c210af296ef423f32651516300a7a3 Mon Sep 17 00:00:00 2001 From: Michael Maurer Date: Fri, 21 Oct 2022 12:45:03 -0400 Subject: [PATCH] python3Packages.poetry: fix thread crashes in tests on aarch64-darwin --- pkgs/development/python-modules/poetry/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/poetry/default.nix b/pkgs/development/python-modules/poetry/default.nix index 3105187c98a7..7d51941cd88c 100644 --- a/pkgs/development/python-modules/poetry/default.nix +++ b/pkgs/development/python-modules/poetry/default.nix @@ -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 = [