53 lines
1.3 KiB
Nix
53 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
elasticsearch,
|
|
fetchPypi,
|
|
python-dateutil,
|
|
pythonOlder,
|
|
setuptools,
|
|
typing-extensions,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "elasticsearch-dsl";
|
|
version = "8.15.3";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchPypi {
|
|
pname = "elasticsearch_dsl";
|
|
inherit version;
|
|
hash = "sha256-QAX6Gr71wK3FJmiWwxd9Dpj/WsSWA8Nt2pBY1hb3klc=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
elasticsearch
|
|
python-dateutil
|
|
typing-extensions
|
|
];
|
|
|
|
optional-dependencies = {
|
|
async = [ elasticsearch ] ++ elasticsearch.optional-dependencies.async;
|
|
};
|
|
|
|
# ImportError: No module named test_elasticsearch_dsl
|
|
# Tests require a local instance of elasticsearch
|
|
doCheck = false;
|
|
|
|
meta = with 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";
|
|
changelog = "https://github.com/elastic/elasticsearch-dsl-py/blob/v${version}/Changelog.rst";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ desiderius ];
|
|
};
|
|
}
|