Merge pull request #205384 from anthonyroussel/awscli

authored by

Sandro and committed by
GitHub
7c3dd974 aaaeebad

+61 -50
+32 -25
pkgs/development/python-modules/boto3/default.nix
··· 1 { lib 2 , buildPythonPackage 3 - , fetchPypi 4 , botocore 5 , jmespath 6 , s3transfer 7 - , futures ? null 8 - , docutils 9 - , nose 10 - , mock 11 - , isPy3k 12 }: 13 14 buildPythonPackage rec { 15 pname = "boto3"; 16 - version = "1.24.75"; # N.B: if you change this, change botocore and awscli to a matching version 17 18 - src = fetchPypi { 19 - inherit pname version; 20 - sha256 = "sha256-e/oiQt+bH6c+F/TX959rIlYPVdXaLifleOWF725LFKc="; 21 }; 22 23 - propagatedBuildInputs = [ botocore jmespath s3transfer ] ++ lib.optionals (!isPy3k) [ futures ]; 24 - checkInputs = [ docutils nose mock ]; 25 26 - checkPhase = '' 27 - runHook preCheck 28 - # This method is not in mock. It might have appeared in some versions. 29 - sed -i 's/action.assert_called_once()/self.assertEqual(action.call_count, 1)/' \ 30 - tests/unit/resources/test_factory.py 31 - nosetests -d tests/unit --verbose 32 - runHook postCheck 33 - ''; 34 35 - # Network access 36 - doCheck = false; 37 38 - pythonImportsCheck = [ "boto3" ]; 39 40 - meta = { 41 homepage = "https://github.com/boto/boto3"; 42 - license = lib.licenses.asl20; 43 description = "AWS SDK for Python"; 44 longDescription = '' 45 Boto3 is the Amazon Web Services (AWS) Software Development Kit (SDK) for 46 Python, which allows Python developers to write software that makes use of 47 services like Amazon S3 and Amazon EC2. 48 ''; 49 }; 50 }
··· 1 { lib 2 , buildPythonPackage 3 + , fetchFromGitHub 4 , botocore 5 , jmespath 6 , s3transfer 7 + , setuptools 8 + , pytestCheckHook 9 }: 10 11 buildPythonPackage rec { 12 pname = "boto3"; 13 + version = "1.26.38"; # N.B: if you change this, change botocore and awscli to a matching version 14 + format = "pyproject"; 15 16 + src = fetchFromGitHub { 17 + owner = "boto"; 18 + repo = pname; 19 + rev = version; 20 + hash = "sha256-/QkR6gL0XkXofnFDcKa7J0ZbZbgT0IKnqtq2wcilbEs="; 21 }; 22 23 + propagatedBuildInputs = [ 24 + botocore 25 + jmespath 26 + s3transfer 27 + setuptools 28 + ]; 29 + 30 + doCheck = true; 31 32 + checkInputs = [ 33 + pytestCheckHook 34 + ]; 35 36 + pythonImportsCheck = [ 37 + "boto3" 38 + ]; 39 40 + disabledTestPaths = [ 41 + # Integration tests require networking 42 + "tests/integration" 43 + ]; 44 45 + meta = with lib; { 46 homepage = "https://github.com/boto/boto3"; 47 + changelog = "https://github.com/boto/boto3/blob/${version}/CHANGELOG.rst"; 48 + license = licenses.asl20; 49 description = "AWS SDK for Python"; 50 longDescription = '' 51 Boto3 is the Amazon Web Services (AWS) Software Development Kit (SDK) for 52 Python, which allows Python developers to write software that makes use of 53 services like Amazon S3 and Amazon EC2. 54 ''; 55 + maintainers = with maintainers; [ anthonyroussel ]; 56 }; 57 }
+21 -13
pkgs/development/python-modules/botocore/default.nix
··· 4 , python-dateutil 5 , jmespath 6 , docutils 7 - , simplejson 8 - , mock 9 - , nose 10 , urllib3 11 }: 12 13 buildPythonPackage rec { 14 pname = "botocore"; 15 - version = "1.27.75"; # N.B: if you change this, change boto3 and awscli to a matching version 16 17 src = fetchPypi { 18 inherit pname version; 19 - sha256 = "sha256-+LHaK0HojFjbUdsMbv9spWQliUjOSlrH6WrDWkabDU8="; 20 }; 21 22 propagatedBuildInputs = [ 23 python-dateutil 24 jmespath 25 docutils 26 - simplejson 27 urllib3 28 ]; 29 30 - checkInputs = [ mock nose ]; 31 32 - checkPhase = '' 33 - nosetests -v 34 - ''; 35 36 - # Network access 37 - doCheck = false; 38 39 - pythonImportsCheck = [ "botocore" ]; 40 41 meta = with lib; { 42 homepage = "https://github.com/boto/botocore"; 43 license = licenses.asl20; 44 description = "A low-level interface to a growing number of Amazon Web Services"; 45 }; 46 }
··· 4 , python-dateutil 5 , jmespath 6 , docutils 7 , urllib3 8 + , pytestCheckHook 9 + , jsonschema 10 }: 11 12 buildPythonPackage rec { 13 pname = "botocore"; 14 + version = "1.29.38"; # N.B: if you change this, change boto3 and awscli to a matching version 15 16 src = fetchPypi { 17 inherit pname version; 18 + hash = "sha256-K5jH2oZozcAitNila1BoZFTQoQwRUYcC/eQYgdIGGLY="; 19 }; 20 21 propagatedBuildInputs = [ 22 python-dateutil 23 jmespath 24 docutils 25 urllib3 26 ]; 27 28 + checkInputs = [ 29 + pytestCheckHook 30 + jsonschema 31 + ]; 32 33 + doCheck = true; 34 + 35 + disabledTestPaths = [ 36 + # Integration tests require networking 37 + "tests/integration" 38 39 + # Disable slow tests (only run unit tests) 40 + "tests/functional" 41 + ]; 42 43 + pythonImportsCheck = [ 44 + "botocore" 45 + ]; 46 47 meta = with lib; { 48 homepage = "https://github.com/boto/botocore"; 49 + changelog = "https://github.com/boto/botocore/blob/${version}/CHANGELOG.rst"; 50 license = licenses.asl20; 51 description = "A low-level interface to a growing number of Amazon Web Services"; 52 + maintainers = with maintainers; [ anthonyroussel ]; 53 }; 54 }
+4 -9
pkgs/development/python-modules/moto/default.nix
··· 20 , openapi-spec-validator 21 , python-dateutil 22 , python-jose 23 - , pytz 24 , pyyaml 25 , requests 26 , responses ··· 37 38 buildPythonPackage rec { 39 pname = "moto"; 40 - version = "4.0.3"; 41 format = "setuptools"; 42 43 disabled = pythonOlder "3.6"; 44 45 src = fetchPypi { 46 inherit pname version; 47 - sha256 = "sha256-iutWdX5oavPkpj+Qr7yXPLIxrarYfFzonmiTbBCbC+k="; 48 }; 49 50 - postPatch = '' 51 - substituteInPlace setup.py \ 52 - --replace "werkzeug>=0.5,<2.2.0" "werkzeug>=0.5" 53 - ''; 54 - 55 propagatedBuildInputs = [ 56 aws-xray-sdk 57 boto3 ··· 68 openapi-spec-validator 69 python-dateutil 70 python-jose 71 - pytz 72 pyyaml 73 requests 74 responses ··· 139 "tests/test_awslambda/test_lambda_eventsourcemapping.py" 140 "tests/test_awslambda/test_lambda_invoke.py" 141 "tests/test_batch/test_batch_jobs.py" 142 ]; 143 144 disabledTests = [
··· 20 , openapi-spec-validator 21 , python-dateutil 22 , python-jose 23 , pyyaml 24 , requests 25 , responses ··· 36 37 buildPythonPackage rec { 38 pname = "moto"; 39 + version = "4.0.12"; 40 format = "setuptools"; 41 42 disabled = pythonOlder "3.6"; 43 44 src = fetchPypi { 45 inherit pname version; 46 + hash = "sha256-MPjzFljxjNsV62JsjLOgdSDw2MIZMib7yzMmrhL7okY="; 47 }; 48 49 propagatedBuildInputs = [ 50 aws-xray-sdk 51 boto3 ··· 62 openapi-spec-validator 63 python-dateutil 64 python-jose 65 pyyaml 66 requests 67 responses ··· 132 "tests/test_awslambda/test_lambda_eventsourcemapping.py" 133 "tests/test_awslambda/test_lambda_invoke.py" 134 "tests/test_batch/test_batch_jobs.py" 135 + "tests/test_kinesis/test_kinesis.py" 136 + "tests/test_kinesis/test_kinesis_stream_consumers.py" 137 ]; 138 139 disabledTests = [
+3 -2
pkgs/tools/admin/awscli/default.nix
··· 28 in 29 with py.pkgs; buildPythonApplication rec { 30 pname = "awscli"; 31 - version = "1.25.76"; # N.B: if you change this, change botocore and boto3 to a matching version too 32 33 src = fetchPypi { 34 inherit pname version; 35 - hash = "sha256-PSr0zZEGXFxcFSN7QQ5Ux0Z4aCwwm9na+2hIv/gR6+s="; 36 }; 37 38 # https://github.com/aws/aws-cli/issues/4837 ··· 82 83 meta = with lib; { 84 homepage = "https://aws.amazon.com/cli/"; 85 description = "Unified tool to manage your AWS services"; 86 license = licenses.asl20; 87 mainProgram = "aws";
··· 28 in 29 with py.pkgs; buildPythonApplication rec { 30 pname = "awscli"; 31 + version = "1.27.38"; # N.B: if you change this, change botocore and boto3 to a matching version too 32 33 src = fetchPypi { 34 inherit pname version; 35 + hash = "sha256-SjeFBWwfd+9sXcZL9NdqFyuBIQtql3KB3lnygeVVHU0="; 36 }; 37 38 # https://github.com/aws/aws-cli/issues/4837 ··· 82 83 meta = with lib; { 84 homepage = "https://aws.amazon.com/cli/"; 85 + changelog = "https://github.com/aws/aws-cli/blob/${version}/CHANGELOG.rst"; 86 description = "Unified tool to manage your AWS services"; 87 license = licenses.asl20; 88 mainProgram = "aws";
+1 -1
pkgs/tools/virtualization/awsebcli/default.nix
··· 49 substituteInPlace setup.py \ 50 --replace "six>=1.11.0,<1.15.0" "six==1.16.0" \ 51 --replace "requests>=2.20.1,<=2.26" "requests==2.28.1" \ 52 - --replace "botocore>1.23.41,<1.24.0" "botocore>1.23.41,<1.27.76" \ 53 --replace "pathspec==0.9.0" "pathspec>=0.10.0,<0.11.0" \ 54 --replace "colorama>=0.2.5,<0.4.4" "colorama>=0.2.5,<=0.4.6" \ 55 --replace "termcolor == 1.1.0" "termcolor>=2.0.0,<2.1.0"
··· 49 substituteInPlace setup.py \ 50 --replace "six>=1.11.0,<1.15.0" "six==1.16.0" \ 51 --replace "requests>=2.20.1,<=2.26" "requests==2.28.1" \ 52 + --replace "botocore>1.23.41,<1.24.0" "botocore>1.23.41,<2" \ 53 --replace "pathspec==0.9.0" "pathspec>=0.10.0,<0.11.0" \ 54 --replace "colorama>=0.2.5,<0.4.4" "colorama>=0.2.5,<=0.4.6" \ 55 --replace "termcolor == 1.1.0" "termcolor>=2.0.0,<2.1.0"