summary refs log tree commit diff
path: root/pkgs/development/python-modules/elasticsearch
diff options
context:
space:
mode:
authorBas van Dijk <v.dijk.bas@gmail.com>2018-01-12 10:07:46 +0100
committerBas van Dijk <v.dijk.bas@gmail.com>2018-01-12 10:17:41 +0100
commitc02a8831693e91275bb4612f052d7eea51debf7d (patch)
treee829884b4b3c654017c244fb792d19dbec952b45 /pkgs/development/python-modules/elasticsearch
parent10c6439a8998466266ff6f440c0716ae8b9b1a84 (diff)
downloadnixpkgs-c02a8831693e91275bb4612f052d7eea51debf7d.tar
nixpkgs-c02a8831693e91275bb4612f052d7eea51debf7d.tar.gz
nixpkgs-c02a8831693e91275bb4612f052d7eea51debf7d.tar.bz2
nixpkgs-c02a8831693e91275bb4612f052d7eea51debf7d.tar.lz
nixpkgs-c02a8831693e91275bb4612f052d7eea51debf7d.tar.xz
nixpkgs-c02a8831693e91275bb4612f052d7eea51debf7d.tar.zst
nixpkgs-c02a8831693e91275bb4612f052d7eea51debf7d.zip
pythonPackages.elasticsearch: move derivation to python-modules
Diffstat (limited to 'pkgs/development/python-modules/elasticsearch')
-rw-r--r--pkgs/development/python-modules/elasticsearch/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/elasticsearch/default.nix b/pkgs/development/python-modules/elasticsearch/default.nix
new file mode 100644
index 00000000000..9b90b09c5f5
--- /dev/null
+++ b/pkgs/development/python-modules/elasticsearch/default.nix
@@ -0,0 +1,29 @@
+{ buildPythonPackage
+, fetchPypi
+, urllib3, requests
+, nosexcover, mock
+, stdenv
+}:
+
+buildPythonPackage (rec {
+  pname = "elasticsearch";
+  version = "6.0.0";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "029q603g95fzkh87xkbxxmjfq5s9xkr9y27nfik6d4prsl0zxmlz";
+  };
+
+  # Check is disabled because running them destroy the content of the local cluster!
+  # https://github.com/elasticsearch/elasticsearch-py/tree/master/test_elasticsearch
+  doCheck = false;
+  propagatedBuildInputs = [ urllib3 requests ];
+  buildInputs = [ nosexcover mock ];
+
+  meta = with stdenv.lib; {
+    description = "Official low-level client for Elasticsearch";
+    homepage = https://github.com/elasticsearch/elasticsearch-py;
+    license = licenses.asl20;
+    maintainers = with maintainers; [ desiderius ];
+  };
+})