diff options
Diffstat (limited to 'pkgs/development/tools/aws-sam-cli/default.nix')
-rw-r--r-- | pkgs/development/tools/aws-sam-cli/default.nix | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/pkgs/development/tools/aws-sam-cli/default.nix b/pkgs/development/tools/aws-sam-cli/default.nix index 9b3b39ba1069..94ca01faef2c 100644 --- a/pkgs/development/tools/aws-sam-cli/default.nix +++ b/pkgs/development/tools/aws-sam-cli/default.nix @@ -1,5 +1,6 @@ { lib , python +, enableTelemetry ? false }: let @@ -29,11 +30,11 @@ with py.pkgs; buildPythonApplication rec { pname = "aws-sam-cli"; - version = "0.40.0"; + version = "0.44.0"; src = fetchPypi { inherit pname version; - sha256 = "1vlg5fdkq5xr4v3a86gyxbbrx4rzdspbv62ki7q8yq8xdja1qz05"; + sha256 = "0r3m41xjmg8m2jwsqwc9kdkcs3xbz8dsl240ybwbnr7rp29pnirf"; }; # Tests are not included in the PyPI package @@ -49,6 +50,7 @@ buildPythonApplication rec { docker flask idna + jmespath pathlib2 requests serverlessrepo @@ -56,20 +58,23 @@ buildPythonApplication rec { tomlkit ]; + postFixup = if enableTelemetry then "echo aws-sam-cli TELEMETRY IS ENABLED" else '' + # Disable telemetry: https://github.com/awslabs/aws-sam-cli/issues/1272 + wrapProgram $out/bin/sam --set SAM_CLI_TELEMETRY 0 + ''; + # fix over-restrictive version bounds postPatch = '' substituteInPlace requirements/base.txt \ - --replace "requests==2.20.1" "requests==2.22.0" \ --replace "serverlessrepo==0.1.9" "serverlessrepo~=0.1.9" \ - --replace "six~=1.11.0" "six~=1.12.0" \ --replace "python-dateutil~=2.6, <2.8.1" "python-dateutil~=2.6" \ - --replace "PyYAML~=3.12" "PyYAML~=5.1" + --replace "tomlkit==0.5.8" "tomlkit~=0.5.8" \ ''; meta = with lib; { homepage = https://github.com/awslabs/aws-sam-cli; description = "CLI tool for local development and testing of Serverless applications"; license = licenses.asl20; - maintainers = with maintainers; [ andreabedini dhkl ]; + maintainers = with maintainers; [ andreabedini lo1tuma ]; }; } |