From ef1b558e0faeec755da436b0dec4f284b5ca3428 Mon Sep 17 00:00:00 2001 From: Konstantin Alekseev Date: Thu, 12 May 2022 12:44:42 +0300 Subject: [PATCH] python3Packages.pip-tools: fix aarch64-darwin build --- pkgs/development/python-modules/pip-tools/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/python-modules/pip-tools/default.nix b/pkgs/development/python-modules/pip-tools/default.nix index e2f2f565862f..d05696528123 100644 --- a/pkgs/development/python-modules/pip-tools/default.nix +++ b/pkgs/development/python-modules/pip-tools/default.nix @@ -8,6 +8,7 @@ , click , setuptools-scm , pep517 +, stdenv }: buildPythonPackage rec { @@ -26,6 +27,11 @@ buildPythonPackage rec { pytest-xdist ]; + preCheck = lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) '' + # https://github.com/python/cpython/issues/74570#issuecomment-1093748531 + export no_proxy='*'; + ''; + nativeBuildInputs = [ setuptools-scm ];