about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorBas van Dijk <v.dijk.bas@gmail.com>2017-12-21 22:09:41 +0100
committerOrivej Desh <orivej@gmx.fr>2017-12-21 23:43:33 +0000
commit85ee9df0e16935b742dfc6361f2461a31bc05ec7 (patch)
treed247a419209858338eca111680085a450ede917d /pkgs
parentd513afcfc7850d0b3555eaad18f86c33f0865921 (diff)
downloadnixlib-85ee9df0e16935b742dfc6361f2461a31bc05ec7.tar
nixlib-85ee9df0e16935b742dfc6361f2461a31bc05ec7.tar.gz
nixlib-85ee9df0e16935b742dfc6361f2461a31bc05ec7.tar.bz2
nixlib-85ee9df0e16935b742dfc6361f2461a31bc05ec7.tar.lz
nixlib-85ee9df0e16935b742dfc6361f2461a31bc05ec7.tar.xz
nixlib-85ee9df0e16935b742dfc6361f2461a31bc05ec7.tar.zst
nixlib-85ee9df0e16935b742dfc6361f2461a31bc05ec7.zip
python.pkgs.elasticsearch-curator: init at 5.4.1
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/python-modules/elasticsearch-curator/default.nix65
-rw-r--r--pkgs/top-level/python-packages.nix2
2 files changed, 67 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/elasticsearch-curator/default.nix b/pkgs/development/python-modules/elasticsearch-curator/default.nix
new file mode 100644
index 000000000000..bbd2904fd9ee
--- /dev/null
+++ b/pkgs/development/python-modules/elasticsearch-curator/default.nix
@@ -0,0 +1,65 @@
+{ stdenv
+, buildPythonPackage
+, fetchPypi
+, click
+, certifi
+, voluptuous
+, pyyaml
+, elasticsearch
+, nosexcover
+, coverage
+, nose
+, mock
+, funcsigs
+} :
+
+buildPythonPackage rec {
+  pname   = "elasticsearch-curator";
+  version = "5.4.1";
+  name    = "${pname}-${version}";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "1bhiqa61h6bbrfp0aygwwchr785x281hnwk8qgnjhb8g4r8ppr3s";
+  };
+
+  # The integration tests require a running elasticsearch cluster.
+  postUnpackPhase = ''
+    rm -r test/integration
+  '';
+
+  propagatedBuildInputs = [
+    click
+    certifi
+    voluptuous
+    pyyaml
+    elasticsearch
+  ];
+
+  checkInputs = [
+    nosexcover
+    coverage
+    nose
+    mock
+    funcsigs
+  ];
+
+  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 ];
+  };
+}
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index 8bb43b011d32..2970edf52293 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -4643,6 +4643,8 @@ in {
     };
   });
 
+  elasticsearch-curator = callPackage ../development/python-modules/elasticsearch-curator { };
+
   entrypoints = callPackage ../development/python-modules/entrypoints { };
 
   enzyme = callPackage ../development/python-modules/enzyme {};