@@ -0,0 +1,65 @@
1+{ stdenv
2+, buildPythonPackage
3+, fetchPypi
4+, click
5+, certifi
6+, voluptuous
7+, pyyaml
8+, elasticsearch
9+, nosexcover
10+, coverage
11+, nose
12+, mock
13+, funcsigs
14+} :
15+
16+buildPythonPackage rec {
17+ pname = "elasticsearch-curator";
18+ version = "5.4.1";
19+ name = "${pname}-${version}";
20+
21+ src = fetchPypi {
22+ inherit pname version;
23+ sha256 = "1bhiqa61h6bbrfp0aygwwchr785x281hnwk8qgnjhb8g4r8ppr3s";
24+ };
25+
26+ # The integration tests require a running elasticsearch cluster.
27+ postUnpackPhase = ''
28+ rm -r test/integration
29+ '';
30+
31+ propagatedBuildInputs = [
32+ click
33+ certifi
34+ voluptuous
35+ pyyaml
36+ elasticsearch
37+ ];
38+
39+ checkInputs = [
40+ nosexcover
41+ coverage
42+ nose
43+ mock
44+ funcsigs
45+ ];
46+
47+ meta = with stdenv.lib; {
48+ homepage = https://github.com/elastic/curator;
49+ description = "Curate, or manage, your Elasticsearch indices and snapshots";
50+ license = licenses.asl20;
51+ longDescription = ''
52+ Elasticsearch Curator helps you curate, or manage, your Elasticsearch
53+ indices and snapshots by:
54+
55+ * Obtaining the full list of indices (or snapshots) from the cluster, as the
56+ actionable list
57+
58+ * Iterate through a list of user-defined filters to progressively remove
59+ indices (or snapshots) from this actionable list as needed.
60+
61+ * Perform various actions on the items which remain in the actionable list.
62+ '';
63+ maintainers = with maintainers; [ basvandijk ];
64+ };
65+}