blob: 6bb640315f3b49d710b3e5a07419030bb6b744ab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
{
lib,
aiohttp,
buildPythonPackage,
elastic-transport,
fetchPypi,
hatchling,
orjson,
pyarrow,
python-dateutil,
requests,
typing-extensions,
}:
buildPythonPackage rec {
pname = "elasticsearch";
version = "8.18.1";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-mYA18XqMH7p64msYPcp5fc+V24baan7LpW0xr8QPB8c=";
};
build-system = [ hatchling ];
dependencies = [
elastic-transport
python-dateutil
typing-extensions
];
optional-dependencies = {
requests = [ requests ];
async = [ aiohttp ];
orjson = [ orjson ];
pyarrow = [ pyarrow ];
};
pythonImportsCheck = [ "elasticsearch" ];
# Check is disabled because running them destroy the content of the local cluster!
# https://github.com/elasticsearch/elasticsearch-py/tree/master/test_elasticsearch
doCheck = false;
meta = {
description = "Official low-level client for Elasticsearch";
homepage = "https://github.com/elasticsearch/elasticsearch-py";
changelog = "https://github.com/elastic/elasticsearch-py/releases/tag/v${version}";
license = lib.licenses.asl20;
};
}
|