From 869e91ec782d5192b1d472981a0c19a305af43a1 Mon Sep 17 00:00:00 2001 From: superherointj <5861043+superherointj@users.noreply.github.com> Date: Mon, 27 Feb 2023 09:05:57 -0300 Subject: [PATCH] awscli2: 2.10.1 -> 2.10.3 Release: https://github.com/aws/aws-cli/releases/tag/2.10.3 --- pkgs/tools/admin/awscli2/default.nix | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/pkgs/tools/admin/awscli2/default.nix b/pkgs/tools/admin/awscli2/default.nix index f42f0fe7a252..420149b51f96 100644 --- a/pkgs/tools/admin/awscli2/default.nix +++ b/pkgs/tools/admin/awscli2/default.nix @@ -25,16 +25,22 @@ let in with py.pkgs; buildPythonApplication rec { pname = "awscli2"; - version = "2.10.1"; # N.B: if you change this, check if overrides are still up-to-date + version = "2.10.3"; # N.B: if you change this, check if overrides are still up-to-date format = "pyproject"; src = fetchFromGitHub { owner = "aws"; repo = "aws-cli"; rev = version; - hash = "sha256-omg4WNX/DegN6xjHBBGwEijqtvd/b9VfcCC71KfXq98="; + hash = "sha256-ogwJTsd2xrWp54utcyG1QO7hGxBC6S4hVlmmGESyPBQ="; }; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace "distro>=1.5.0,<1.6.0" "distro>=1.5.0" \ + --replace "cryptography>=3.3.2,<38.0.5" "cryptography>=3.3.2" + ''; + nativeBuildInputs = [ flit-core ]; @@ -63,10 +69,6 @@ with py.pkgs; buildPythonApplication rec { pytestCheckHook ]; - postPatch = '' - substituteInPlace pyproject.toml --replace "distro>=1.5.0,<1.6.0" "distro>=1.5.0" - ''; - postInstall = '' mkdir -p $out/${python3.sitePackages}/awscli/data ${python3.interpreter} scripts/gen-ac-index --index-location $out/${python3.sitePackages}/awscli/data/ac.index