nixpkgs/pkgs/development/python-modules/elasticsearch/default.nix
Martin Weinelt c36df86158
python3Packages.elasticsearch: 8.17.0 -> 8.17.2
https://github.com/elastic/elasticsearch-py/releases/tag/v8.17.2

This commit was automatically generated using update-python-libraries.
2025-04-03 23:12:18 +02:00

50 lines
1.1 KiB
Nix

{
lib,
aiohttp,
buildPythonPackage,
elastic-transport,
fetchPypi,
hatchling,
orjson,
pyarrow,
pythonOlder,
requests,
}:
buildPythonPackage rec {
pname = "elasticsearch";
version = "8.17.2";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-/38duK7v2HzrpO3OOqQHCZRYLmzwKdLme3TmbWNFCds=";
};
build-system = [ hatchling ];
dependencies = [ elastic-transport ];
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 = with lib; {
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 = licenses.asl20;
maintainers = with maintainers; [ desiderius ];
};
}