2018-09-24 18:07:30 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPy3k
|
|
|
|
, elasticsearch
|
|
|
|
, ipaddress
|
|
|
|
, python-dateutil
|
|
|
|
, six
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "elasticsearch-dsl";
|
2020-05-23 07:42:50 +01:00
|
|
|
version = "7.2.0";
|
2018-09-24 18:07:30 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-05-23 07:42:50 +01:00
|
|
|
sha256 = "19q91srlcvfrk5rnk18c0mzvki9l893g7rqgymfg0p8abb9c05a0";
|
2018-09-24 18:07:30 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ elasticsearch python-dateutil six ]
|
|
|
|
++ stdenv.lib.optional (!isPy3k) ipaddress;
|
|
|
|
|
|
|
|
# ImportError: No module named test_elasticsearch_dsl
|
|
|
|
# Tests require a local instance of elasticsearch
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|