From 879e6c719242bc4f66898d82bcb3a8236e4115e6 Mon Sep 17 00:00:00 2001 From: Frank Moda Date: Tue, 27 Sep 2022 19:32:38 -0400 Subject: [PATCH] python3Packages.debugpy: fix thread crashes in tests on aarch64-darwin --- pkgs/development/python-modules/debugpy/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/development/python-modules/debugpy/default.nix b/pkgs/development/python-modules/debugpy/default.nix index ca7e2d920107..97b06c130e22 100644 --- a/pkgs/development/python-modules/debugpy/default.nix +++ b/pkgs/development/python-modules/debugpy/default.nix @@ -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"