From f834047dec88e06a937c0be025e6b251b6127ff7 Mon Sep 17 00:00:00 2001 From: Theodore Ni <3806110+tjni@users.noreply.github.com> Date: Thu, 17 Aug 2023 12:23:36 -0700 Subject: [PATCH] awscli2: enable building without pip in the environment --- pkgs/tools/admin/awscli2/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/tools/admin/awscli2/default.nix b/pkgs/tools/admin/awscli2/default.nix index 130cdb769934..ef44da70227b 100644 --- a/pkgs/tools/admin/awscli2/default.nix +++ b/pkgs/tools/admin/awscli2/default.nix @@ -47,6 +47,11 @@ with py.pkgs; buildPythonApplication rec { substituteInPlace pyproject.toml \ --replace 'cryptography>=3.3.2,<40.0.2' 'cryptography>=3.3.2' \ --replace 'flit_core>=3.7.1,<3.8.1' 'flit_core>=3.7.1' + + # upstream needs pip to build and install dependencies and validates this + # with a configure script, but we don't as we provide all of the packages + # through PYTHONPATH + sed -i '/pip>=/d' requirements/bootstrap.txt ''; nativeBuildInputs = [