2017-12-21 21:09:41 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2018-08-21 16:41:26 +01:00
|
|
|
, boto3
|
2017-12-21 21:09:41 +00:00
|
|
|
, click
|
|
|
|
, certifi
|
2018-08-25 15:34:56 +01:00
|
|
|
, requests-aws4auth
|
2017-12-21 21:09:41 +00:00
|
|
|
, voluptuous
|
|
|
|
, pyyaml
|
|
|
|
, elasticsearch
|
|
|
|
, nosexcover
|
|
|
|
, coverage
|
|
|
|
, nose
|
|
|
|
, mock
|
|
|
|
, funcsigs
|
|
|
|
} :
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "elasticsearch-curator";
|
2019-10-24 07:47:29 +01:00
|
|
|
version = "5.8.1";
|
2017-12-21 21:09:41 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-24 07:47:29 +01:00
|
|
|
sha256 = "f0eec9ad043a30bc2e2232637111960139a1bda38232241bdd2f0c253a3584df";
|
2017-12-21 21:09:41 +00:00
|
|
|
};
|
|
|
|
|
2018-08-26 00:20:15 +01:00
|
|
|
# The test hangs so we disable it.
|
2018-08-25 15:44:27 +01:00
|
|
|
doCheck = false;
|
2017-12-21 21:09:41 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
click
|
|
|
|
certifi
|
2018-08-25 15:34:56 +01:00
|
|
|
requests-aws4auth
|
2017-12-21 21:09:41 +00:00
|
|
|
voluptuous
|
|
|
|
pyyaml
|
|
|
|
elasticsearch
|
2018-08-21 16:41:26 +01:00
|
|
|
boto3
|
2017-12-21 21:09:41 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
nosexcover
|
|
|
|
coverage
|
|
|
|
nose
|
|
|
|
mock
|
|
|
|
funcsigs
|
|
|
|
];
|
|
|
|
|
2019-09-06 15:10:39 +01:00
|
|
|
postPatch = ''
|
|
|
|
sed -i s/pyyaml==3.12/pyyaml==${pyyaml.version}/ setup.cfg setup.py
|
|
|
|
'';
|
|
|
|
|
2017-12-21 21:09:41 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/elastic/curator;
|
|
|
|
description = "Curate, or manage, your Elasticsearch indices and snapshots";
|
|
|
|
license = licenses.asl20;
|
|
|
|
longDescription = ''
|
|
|
|
Elasticsearch Curator helps you curate, or manage, your Elasticsearch
|
|
|
|
indices and snapshots by:
|
|
|
|
|
|
|
|
* Obtaining the full list of indices (or snapshots) from the cluster, as the
|
|
|
|
actionable list
|
|
|
|
|
|
|
|
* Iterate through a list of user-defined filters to progressively remove
|
|
|
|
indices (or snapshots) from this actionable list as needed.
|
|
|
|
|
|
|
|
* Perform various actions on the items which remain in the actionable list.
|
|
|
|
'';
|
|
|
|
maintainers = with maintainers; [ basvandijk ];
|
2019-03-21 10:44:08 +00:00
|
|
|
|
|
|
|
# https://github.com/elastic/curator/pull/1280
|
|
|
|
broken = versionAtLeast click.version "7.0";
|
2017-12-21 21:09:41 +00:00
|
|
|
};
|
|
|
|
}
|