1{ stdenv
2, buildPythonPackage
3, fetchPypi
4, isPy3k
5, elasticsearch
6, ipaddress
7, python-dateutil
8, six
9}:
10
11buildPythonPackage rec {
12 pname = "elasticsearch-dsl";
13 version = "7.1.0";
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "3f860e0304d703f63b458fea3782f09a823ab07da7ee84ae4bff1aa63e22aedb";
18 };
19
20 propagatedBuildInputs = [ elasticsearch python-dateutil six ]
21 ++ stdenv.lib.optional (!isPy3k) ipaddress;
22
23 # ImportError: No module named test_elasticsearch_dsl
24 # Tests require a local instance of elasticsearch
25 doCheck = false;
26
27 meta = with stdenv.lib; {
28 description = "High level Python client for Elasticsearch";
29 longDescription = ''
30 Elasticsearch DSL is a high-level library whose aim is to help with
31 writing and running queries against Elasticsearch. It is built on top of
32 the official low-level client (elasticsearch-py).
33 '';
34 homepage = https://github.com/elasticsearch/elasticsearch-dsl-py;
35 license = licenses.asl20;
36 maintainers = with maintainers; [ desiderius ];
37 };
38}