4fc29cb41f
GitOrigin-RevId: 135073a87b7e2c631739f4ffa016e1859b1a425e
38 lines
1 KiB
Nix
38 lines
1 KiB
Nix
{ stdenv
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, isPy3k
|
|
, elasticsearch
|
|
, ipaddress
|
|
, python-dateutil
|
|
, six
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "elasticsearch-dsl";
|
|
version = "7.2.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "19q91srlcvfrk5rnk18c0mzvki9l893g7rqgymfg0p8abb9c05a0";
|
|
};
|
|
|
|
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).
|
|
'';
|
|
homepage = "https://github.com/elasticsearch/elasticsearch-dsl-py";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ desiderius ];
|
|
};
|
|
}
|