Merge pull request #258389 from anthonyroussel/awscli-upgrade

awscli: 1.29.9 -> 1.29.57
This commit is contained in:
Mario Rodas 2023-10-15 12:53:53 -05:00 committed by GitHub
commit c25fcec732
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 26 additions and 20 deletions

View File

@ -10,14 +10,14 @@
buildPythonPackage rec {
pname = "boto3";
version = "1.28.9"; # N.B: if you change this, change botocore and awscli to a matching version
version = "1.28.57"; # N.B: if you change this, change botocore and awscli to a matching version
format = "pyproject";
src = fetchFromGitHub {
owner = "boto";
repo = pname;
rev = version;
hash = "sha256-NkNHA20yn1Q7uoq/EL1Wn8F1fpi1waQujutGIKsnxlI=";
hash = "sha256-+kuILCUK10tvpfTEAHZGvKKmpw6Pgn+v2kQkwCkPMKg=";
};
nativeBuildInputs = [

View File

@ -10,12 +10,12 @@
buildPythonPackage rec {
pname = "botocore";
version = "1.31.48"; # N.B: if you change this, change boto3 and awscli to a matching version
version = "1.31.57"; # N.B: if you change this, change boto3 and awscli to a matching version
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-btFvZqpu1gcP7SbWl2TLFMd1nkzAscGRKDzEiwXWXek=";
hash = "sha256-MBQ2F0Y1vsc5siW4QPw2XKAOXBpj5bKhnuZ50gTgG3g=";
};
propagatedBuildInputs = [

View File

@ -9,7 +9,7 @@
buildPythonPackage rec {
pname = "s3transfer";
version = "0.6.2";
version = "0.7.0";
format = "setuptools";
disabled = pythonOlder "3.7";
@ -18,7 +18,7 @@ buildPythonPackage rec {
owner = "boto";
repo = pname;
rev = version;
hash = "sha256-hoHNblnCSZteHmI5sJN72WrX7tveNFZqmL1jFKQmdag=";
hash = "sha256-EvLqRvm9E1Taf+JvbhQbfJqIlbu2a+rB2MX0IO90x98=";
};
propagatedBuildInputs = [ botocore ];
@ -39,6 +39,7 @@ buildPythonPackage rec {
meta = with lib; {
description = "Library for managing Amazon S3 transfers";
homepage = "https://github.com/boto/s3transfer";
changelog = "https://github.com/boto/s3transfer/blob/${version}/CHANGELOG.rst";
license = licenses.asl20;
maintainers = with maintainers; [ nickcao ];
};

View File

@ -3,24 +3,20 @@
, fetchPypi
, groff
, less
, nix-update-script
, testers
, awscli
}:
python3.pkgs.buildPythonApplication rec {
pname = "awscli";
version = "1.29.9"; # N.B: if you change this, change botocore and boto3 to a matching version too
version = "1.29.57"; # N.B: if you change this, change botocore and boto3 to a matching version too
src = fetchPypi {
inherit pname version;
hash = "sha256-8SmOu79FZESL1Hd15wdd1m1Uewswqaum2y8LOZAl9P8=";
hash = "sha256-+xME5GiDitxn61yrIkiEByx/xeMeXMrVS2rifIX6Ci8=";
};
# https://github.com/aws/aws-cli/issues/4837
postPatch = ''
substituteInPlace setup.py \
--replace "docutils>=0.10,<0.17" "docutils>=0.10" \
--replace "colorama>=0.2.5,<0.4.5" "colorama>=0.2.5,<0.5" \
--replace "rsa>=3.1.2,<4.8" "rsa<5,>=3.1.2"
'';
propagatedBuildInputs = with python3.pkgs; [
botocore
@ -44,10 +40,6 @@ python3.pkgs.buildPythonApplication rec {
rm $out/bin/aws.cmd
'';
passthru = {
python = python3; # for aws_shell
};
doInstallCheck = true;
installCheckPhase = ''
@ -59,12 +51,25 @@ python3.pkgs.buildPythonApplication rec {
runHook postInstallCheck
'';
passthru = {
python = python3; # for aws_shell
updateScript = nix-update-script {
# Excludes 1.x versions from the Github tags list
extraArgs = [ "--version-regex" "^(1\.(.*))" ];
};
tests.version = testers.testVersion {
package = awscli;
command = "aws --version";
inherit version;
};
};
meta = with lib; {
homepage = "https://aws.amazon.com/cli/";
changelog = "https://github.com/aws/aws-cli/blob/${version}/CHANGELOG.rst";
description = "Unified tool to manage your AWS services";
license = licenses.asl20;
mainProgram = "aws";
maintainers = with maintainers; [ ];
maintainers = with maintainers; [ anthonyroussel ];
};
}