Unverified Commit f096c10d authored by Anthony Roussel's avatar Anthony Roussel
Browse files

aws-sam-cli: add passthru.updateScript and passthru.tests

parent b48ed3ed
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
{ lib
, python3
, fetchPypi
, testers
, aws-sam-cli
, nix-update-script
, enableTelemetry ? false
}:

@@ -57,6 +60,16 @@ python3.pkgs.buildPythonApplication rec {

  doCheck = false;

  passthru = {
    tests.version = testers.testVersion {
      package = aws-sam-cli;
      command = "sam --version";
    };
    updateScript = nix-update-script {
      extraArgs = [ "--version-regex" "^v([0-9.]+)$" ];
    };
  };

  meta = with lib; {
    description = "CLI tool for local development and testing of Serverless applications";
    homepage = "https://github.com/aws/aws-sam-cli";