Commit 3ea6ede4 authored by Yiyu Zhou's avatar Yiyu Zhou
Browse files

aws-sam-cli: 1.143.0 -> 1.146.0

parent 6f88c4e5
Loading
Loading
Loading
Loading
+11 −3
Original line number Diff line number Diff line
@@ -11,14 +11,14 @@

python3.pkgs.buildPythonApplication rec {
  pname = "aws-sam-cli";
  version = "1.143.0";
  version = "1.146.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "aws";
    repo = "aws-sam-cli";
    tag = "v${version}";
    hash = "sha256-QnJQ45ucziHmOkQdAT29szOljBExiIXZ2zvhiKYXBxI=";
    hash = "sha256-b0nXhhgQgV0TZ0PGYexKxsb1s7PIe+5dqjOWJiVlWJY=";
  };

  build-system = with python3.pkgs; [ setuptools ];
@@ -82,6 +82,12 @@ python3.pkgs.buildPythonApplication rec {
      xray
    ]);

  # Remove after upstream bumps click > 8.1.8
  postPatch = ''
    substituteInPlace requirements/base.txt --replace-fail \
      'click==8.1.8' 'click==${python3.pkgs.click.version}'
  '';

  postFixup = ''
    # Disable telemetry: https://github.com/aws/aws-sam-cli/issues/1272
    wrapProgram $out/bin/sam \
@@ -125,7 +131,9 @@ python3.pkgs.buildPythonApplication rec {
    "tests/unit/lib/observability/cw_logs/"
    "tests/unit/lib/build_module/"
    # Disable flaky tests
    "tests/unit/lib/samconfig/test_samconfig.py"
    "tests/unit/cli/test_main.py"
    "tests/unit/commands/samconfig/test_samconfig.py"
    "tests/unit/local/docker/test_lambda_image.py"
  ];

  disabledTests = [