aws-sam-cli: add passthru.updateScript and passthru.tests
This commit is contained in:
parent
b48ed3ed61
commit
f096c10d7f
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user