elasticsearch-curator: add passthru.{tests.version,updateScript}

This commit is contained in:
Anthony Roussel 2024-03-24 11:56:02 +01:00
parent d964e7ac2a
commit ef35305c3b
No known key found for this signature in database
GPG Key ID: 9DC4987B1A55E75E
1 changed files with 12 additions and 0 deletions

View File

@ -1,6 +1,9 @@
{ lib
, elasticsearch-curator
, fetchFromGitHub
, nix-update-script
, python3
, testers
}:
python3.pkgs.buildPythonApplication rec {
@ -76,6 +79,14 @@ python3.pkgs.buildPythonApplication rec {
"test_api_key_set"
];
passthru = {
tests.version = testers.testVersion {
package = elasticsearch-curator;
command = "${lib.getExe elasticsearch-curator} --version";
};
updateScript = nix-update-script { };
};
meta = with lib; {
description = "Curate, or manage, your Elasticsearch indices and snapshots";
homepage = "https://github.com/elastic/curator";
@ -93,6 +104,7 @@ python3.pkgs.buildPythonApplication rec {
* Perform various actions on the items which remain in the actionable list.
'';
mainProgram = "curator";
maintainers = with maintainers; [ basvandijk ];
};
}