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