Files
nixpkgs/pkgs/development/python-modules/elasticsearch8/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

52 lines
1.1 KiB
Nix

{
lib,
aiohttp,
buildPythonPackage,
elastic-transport,
fetchPypi,
hatchling,
orjson,
python-dateutil,
requests,
typing-extensions,
}:
buildPythonPackage rec {
pname = "elasticsearch8";
version = "8.19.2";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-lDfI5RI8JgtZdmGDv9kVIGdyVChJtpf3inlEbsiQqA4=";
};
build-system = [ hatchling ];
dependencies = [
elastic-transport
python-dateutil
typing-extensions
];
optional-dependencies = {
async = [ aiohttp ];
requests = [ requests ];
orjson = [ orjson ];
};
# Check is disabled because running them destroy the content of the local cluster!
# https://github.com/elasticsearch/elasticsearch-py/tree/main/test_elasticsearch
doCheck = false;
pythonImportsCheck = [ "elasticsearch8" ];
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;
maintainers = with lib.maintainers; [ fab ];
};
}