git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #32905 from LumiGuide/elasticsearch-curator-5.4.1

elasticsearch-curator: init at 5.4.1

commitfa2f609c7e73df13239af8cf2b1acb0b6646b660 authorOrivej Desh <orivej@gmx.fr> dateThu 21 Dec 2017, 23:47 (9 years ago) parentfc99ee585ee9df
3 files changed+94−25
pkgs/development/python-modules/elasticsearch-curator/default.nix+65 pkgs/development/python-modules/voluptuous/default.nix+20 pkgs/top-level/python-packages.nix+9−25
pkgs/development/python-modules/elasticsearch-curator/default.nixnew file+65
@@ -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+}
pkgs/development/python-modules/voluptuous/default.nixnew file+20
@@ -0,0 +1,20 @@
1+{ stdenv, buildPythonPackage, fetchPypi, nose }:
2+
3+buildPythonPackage rec {
4+ pname = "voluptuous";
5+ version = "0.10.5";
6+ name = "${pname}-${version}";
7+
8+ src = fetchPypi {
9+ inherit pname version;
10+ sha256 = "15i3gaap8ilhpbah1ffc6q415wkvliqxilc6s69a4rinvkw6cx3s";
11+ };
12+
13+ checkInputs = [ nose ];
14+
15+ meta = with stdenv.lib; {
16+ description = "Voluptuous is a Python data validation library";
17+ homepage = http://alecthomas.github.io/voluptuous/;
18+ license = licenses.bsd3;
19+ };
20+}
pkgs/top-level/python-packages.nix+9−25
@@ -4598,11 +4598,13 @@ in {
45984598 edward = callPackage ../development/python-modules/edward { };
45994599
46004600 elasticsearch = buildPythonPackage (rec {
4601− name = "elasticsearch-1.9.0";
4601+ pname = "elasticsearch";
4602+ version = "6.0.0";
4603+ name = "${pname}-${version}";
46024604
4603− src = pkgs.fetchurl {
4604− url = "mirror://pypi/e/elasticsearch/${name}.tar.gz";
4605− sha256 = "091s60ziwhyl9kjfm833i86rcpjx46v9h16jkgjgkk5441dln3gb";
4605+ src = fetchPypi {
4606+ inherit pname version;
4607+ sha256 = "029q603g95fzkh87xkbxxmjfq5s9xkr9y27nfik6d4prsl0zxmlz";
46064608 };
46074609
46084610 # Check is disabled because running them destroy the content of the local cluster!
@@ -4619,7 +4621,6 @@ in {
46194621 };
46204622 });
46214623
4622−
46234624 elasticsearchdsl = buildPythonPackage (rec {
46244625 name = "elasticsearch-dsl-0.0.9";
46254626
@@ -4642,6 +4643,8 @@ in {
46424643 };
46434644 });
46444645
4646+ elasticsearch-curator = callPackage ../development/python-modules/elasticsearch-curator { };
4647+
46454648 entrypoints = callPackage ../development/python-modules/entrypoints { };
46464649
46474650 enzyme = callPackage ../development/python-modules/enzyme {};
@@ -14328,26 +14331,6 @@ in {
1432814331 };
1432914332 };
1433014333
14331− pyelasticsearch = buildPythonPackage (rec {
14332− name = "pyelasticsearch-1.4";
14333−
14334− src = pkgs.fetchurl {
14335− url = "mirror://pypi/p/pyelasticsearch/${name}.tar.gz";
14336− sha256 = "18wp6llfjv6hvyhr3f6i8dm9wc5rf46wiqsfxwpvnf6mdrvk6xr7";
14337− };
14338−
14339− # Tests require a local instance of elasticsearch
14340− doCheck = false;
14341− propagatedBuildInputs = with self; [ elasticsearch six simplejson certifi ];
14342− buildInputs = with self; [ nose mock ];
14343−
14344− meta = {
14345− description = "A clean, future-proof, high-scale API to elasticsearch";
14346− homepage = https://pyelasticsearch.readthedocs.org;
14347− license = licenses.bsd3;
14348− };
14349− });
14350−
1435114334 pyelftools = buildPythonPackage rec {
1435214335 pname = "pyelftools";
1435314336 version = "0.24";
@@ -23290,6 +23273,7 @@ EOF
2329023273
2329123274 ephem = callPackage ../development/python-modules/ephem { };
2329223275
23276+ voluptuous = callPackage ../development/python-modules/voluptuous { };
2329323277});
2329423278
2329523279in fix' (extends overrides packages)