2023-07-05 23:25:39 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aiohttp,
|
|
|
|
buildPythonPackage,
|
|
|
|
certifi,
|
|
|
|
elastic-transport,
|
2018-01-12 10:07:46 +01:00
|
|
|
fetchPypi,
|
2023-07-05 23:25:39 +02:00
|
|
|
pythonOlder,
|
|
|
|
requests,
|
|
|
|
urllib3,
|
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";
|
2024-06-19 05:05:29 +02:00
|
|
|
version = "8.14.0";
|
2023-07-05 23:25:39 +02:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2018-01-12 10:07:46 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-07-14 00:25:56 +08:00
|
|
|
hash = "sha256-qiSQAp3Zb0AVszPBgnqiH9bApNIjsA37D+kzuNCaURs=";
|
2018-01-12 10:07:46 +01:00
|
|
|
};
|
|
|
|
|
2023-12-03 00:00:34 +01:00
|
|
|
nativeBuildInputs = [ elastic-transport ];
|
2023-07-05 23:25:39 +02:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
urllib3
|
|
|
|
certifi
|
|
|
|
];
|
|
|
|
|
|
|
|
passthru.optional-dependencies = {
|
|
|
|
requests = [ requests ];
|
|
|
|
async = [ aiohttp ];
|
|
|
|
};
|
|
|
|
|
|
|
|
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
|
|
|
}
|