diff --git a/pkgs/tools/admin/awscli2/default.nix b/pkgs/tools/admin/awscli2/default.nix index a04ebf85ea7f..463063e6a664 100644 --- a/pkgs/tools/admin/awscli2/default.nix +++ b/pkgs/tools/admin/awscli2/default.nix @@ -4,6 +4,8 @@ , less , fetchFromGitHub , nix-update-script +, testers +, awscli2 }: let @@ -32,14 +34,14 @@ let in with py.pkgs; buildPythonApplication rec { pname = "awscli2"; - version = "2.8.12"; # N.B: if you change this, check if overrides are still up-to-date + version = "2.9.0"; # N.B: if you change this, check if overrides are still up-to-date format = "pyproject"; src = fetchFromGitHub { owner = "aws"; repo = "aws-cli"; rev = version; - sha256 = "sha256-OeOSSB0WgVJEszmkXmMkmJNq37sPID7HFaTbXkBUwlI="; + sha256 = "sha256-kPMoGOn6ws4DjA9fR9gci7vHPIqOSsgMXa1wCiwN8yU="; }; nativeBuildInputs = [ @@ -121,6 +123,11 @@ with py.pkgs; buildPythonApplication rec { updateScript = nix-update-script { attrPath = pname; }; + tests.version = testers.testVersion { + package = awscli2; + command = "aws --version"; + version = version; + }; }; meta = with lib; { @@ -129,5 +136,6 @@ with py.pkgs; buildPythonApplication rec { description = "Unified tool to manage your AWS services"; license = licenses.asl20; maintainers = with maintainers; [ bhipple davegallant bryanasdev000 devusb anthonyroussel ]; + mainProgram = "aws"; }; }