From ccfe357519c1709c11c67f999f051af8858588ab Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 4 Jul 2024 13:50:29 +0200 Subject: [PATCH] awstool: remove version math that broke, update to 1.33.11 --- pkgs/tools/admin/awscli/default.nix | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/pkgs/tools/admin/awscli/default.nix b/pkgs/tools/admin/awscli/default.nix index 9080d88a59a7..f3e5fc97e323 100644 --- a/pkgs/tools/admin/awscli/default.nix +++ b/pkgs/tools/admin/awscli/default.nix @@ -9,18 +9,16 @@ }: let - botocoreVersion = python3.pkgs.botocore.version; - # awscli.version should be pinned to 2 minor versions less than the botocoreVersion - versionMinor = toString (lib.toInt (lib.versions.minor botocoreVersion) - 2); - versionPatch = lib.versions.patch botocoreVersion; self = python3.pkgs.buildPythonApplication rec { pname = "awscli"; - version = "1.${versionMinor}.${versionPatch}"; # N.B: if you change this, change botocore and boto3 to a matching version too + # N.B: if you change this, change botocore and boto3 to a matching version too + # check e.g. https://github.com/aws/aws-cli/blob/1.33.21/setup.py + version = "1.33.11"; pyproject = true; src = fetchPypi { inherit pname version; - hash = "sha256-96hFvXs3Fcvad+PBEpS9RFMJkcD1qHqfQ+8gtVfEbnc="; + hash = "sha256-Q8qtGChOnscOm7m3s7bWwUFmrUwMua9N6uz1Lyc8QIY="; }; pythonRelaxDeps = [ @@ -60,7 +58,7 @@ let installCheckPhase = '' runHook preInstallCheck - $out/bin/aws --version | grep "${botocoreVersion}" + $out/bin/aws --version | grep "${python3.pkgs.botocore.version}" $out/bin/aws --version | grep "${version}" runHook postInstallCheck