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