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

This commit is contained in:
Anthony Roussel 2023-10-23 17:53:25 +02:00
parent b48ed3ed61
commit f096c10d7f
No known key found for this signature in database
GPG Key ID: 9DC4987B1A55E75E

View File

@ -1,6 +1,9 @@
{ 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";