2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPy3k
|
|
|
|
, elasticsearch
|
|
|
|
, ipaddress
|
|
|
|
, python-dateutil
|
|
|
|
, six
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "elasticsearch-dsl";
|
2021-09-18 10:52:07 +00:00
|
|
|
version = "7.4.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-09-18 10:52:07 +00:00
|
|
|
sha256 = "c4a7b93882918a413b63bed54018a1685d7410ffd8facbc860ee7fd57f214a6d";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ elasticsearch python-dateutil six ]
|
2021-02-05 17:12:51 +00:00
|
|
|
++ lib.optional (!isPy3k) ipaddress;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# ImportError: No module named test_elasticsearch_dsl
|
|
|
|
# Tests require a local instance of elasticsearch
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "High level Python client for Elasticsearch";
|
|
|
|
longDescription = ''
|
|
|
|
Elasticsearch DSL is a high-level library whose aim is to help with
|
|
|
|
writing and running queries against Elasticsearch. It is built on top of
|
|
|
|
the official low-level client (elasticsearch-py).
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/elasticsearch/elasticsearch-dsl-py";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ desiderius ];
|
|
|
|
};
|
|
|
|
}
|