awstool: remove version math that broke, update to 1.33.11

This commit is contained in:
Martin Weinelt 2024-07-04 13:50:29 +02:00
parent 850652e776
commit ccfe357519
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -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