2023-07-05 23:25:39 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aiohttp,
|
|
|
|
buildPythonPackage,
|
|
|
|
elastic-transport,
|
2018-01-12 10:07:46 +01:00
|
|
|
fetchPypi,
|
2024-09-29 17:04:26 +02:00
|
|
|
hatchling,
|
|
|
|
orjson,
|
|
|
|
pyarrow,
|
2023-07-05 23:25:39 +02:00
|
|
|
pythonOlder,
|
|
|
|
requests,
|
2018-01-12 10:07:46 +01:00
|
|
|
}:
|
|
|
|
|
2023-07-05 23:25:39 +02:00
|
|
|
buildPythonPackage rec {
|
2018-01-12 10:07:46 +01:00
|
|
|
pname = "elasticsearch";
|
2025-04-01 07:13:45 +02:00
|
|
|
version = "8.17.2";
|
2024-09-29 17:04:26 +02:00
|
|
|
pyproject = true;
|
2023-07-05 23:25:39 +02:00
|
|
|
|
2024-09-29 17:04:26 +02:00
|
|
|
disabled = pythonOlder "3.8";
|
2018-01-12 10:07:46 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2025-04-01 07:13:45 +02:00
|
|
|
hash = "sha256-/38duK7v2HzrpO3OOqQHCZRYLmzwKdLme3TmbWNFCds=";
|
2018-01-12 10:07:46 +01:00
|
|
|
};
|
|
|
|
|
2024-09-29 17:04:26 +02:00
|
|
|
build-system = [ hatchling ];
|
2023-07-05 23:25:39 +02:00
|
|
|
|
2024-09-29 17:04:26 +02:00
|
|
|
dependencies = [ elastic-transport ];
|
2023-07-05 23:25:39 +02:00
|
|
|
|
2024-09-28 22:35:45 -07:00
|
|
|
optional-dependencies = {
|
2023-07-05 23:25:39 +02:00
|
|
|
requests = [ requests ];
|
|
|
|
async = [ aiohttp ];
|
2024-09-29 17:04:26 +02:00
|
|
|
orjson = [ orjson ];
|
|
|
|
pyarrow = [ pyarrow ];
|
2023-07-05 23:25:39 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "elasticsearch" ];
|
2023-12-03 00:00:34 +01:00
|
|
|
|
2018-01-12 10:07:46 +01:00
|
|
|
# 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;
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-01-12 10:07:46 +01:00
|
|
|
description = "Official low-level client for Elasticsearch";
|
2020-03-31 21:11:51 -04:00
|
|
|
homepage = "https://github.com/elasticsearch/elasticsearch-py";
|
2023-04-29 17:14:18 +02:00
|
|
|
changelog = "https://github.com/elastic/elasticsearch-py/releases/tag/v${version}";
|
2018-01-12 10:07:46 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ desiderius ];
|
|
|
|
};
|
2023-07-05 23:25:39 +02:00
|
|
|
}
|