diff options
Diffstat (limited to 'pkgs/tools/admin/awscli/default.nix')
-rw-r--r-- | pkgs/tools/admin/awscli/default.nix | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/pkgs/tools/admin/awscli/default.nix b/pkgs/tools/admin/awscli/default.nix index 568282fa86ab6..d7fc15a173cf3 100644 --- a/pkgs/tools/admin/awscli/default.nix +++ b/pkgs/tools/admin/awscli/default.nix @@ -9,24 +9,18 @@ }: 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.13"; pyproject = true; src = fetchPypi { inherit pname version; - hash = "sha256-96hFvXs3Fcvad+PBEpS9RFMJkcD1qHqfQ+8gtVfEbnc="; + hash = "sha256-utRALEoP+CWlmkPnbgByFSSX9Nr39iyTdv5uABT6Kps="; }; - nativeBuildInputs = [ - python3.pkgs.pythonRelaxDepsHook - ]; - pythonRelaxDeps = [ # botocore must not be relaxed "colorama" @@ -64,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 |