2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-09-24 18:07:30 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPy3k
|
|
|
|
, elasticsearch
|
|
|
|
, ipaddress
|
|
|
|
, python-dateutil
|
|
|
|
, six
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "elasticsearch-dsl";
|
2020-11-20 01:29:23 +00:00
|
|
|
version = "7.3.0";
|
2018-09-24 18:07:30 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-20 01:29:23 +00:00
|
|
|
sha256 = "0ed75f6ff037e36b2397a8e92cae0ddde79b83adc70a154b8946064cb62f7301";
|
2018-09-24 18:07:30 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ elasticsearch python-dateutil six ]
|
2021-01-24 00:29:22 +00:00
|
|
|
++ lib.optional (!isPy3k) ipaddress;
|
2018-09-24 18:07:30 +01:00
|
|
|
|
|
|
|
# ImportError: No module named test_elasticsearch_dsl
|
|
|
|
# Tests require a local instance of elasticsearch
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-09-24 18:07:30 +01: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).
|
|
|
|
'';
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/elasticsearch/elasticsearch-dsl-py";
|
2018-09-24 18:07:30 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ desiderius ];
|
|
|
|
};
|
|
|
|
}
|