nav: init at 1.2.1 (#356071)
[NixPkgs.git] / pkgs / development / python-modules / elasticsearch / default.nix
blob9133ae2d96945d2eef8c8fdd884f045e6fe3c577
2   lib,
3   aiohttp,
4   buildPythonPackage,
5   elastic-transport,
6   fetchPypi,
7   hatchling,
8   orjson,
9   pyarrow,
10   pythonOlder,
11   requests,
14 buildPythonPackage rec {
15   pname = "elasticsearch";
16   version = "8.15.1";
17   pyproject = true;
19   disabled = pythonOlder "3.8";
21   src = fetchPypi {
22     inherit pname version;
23     hash = "sha256-QMDTEvit+L3IF5W8FqC1Rt31RMsfkOgpokTkeAxNv9g=";
24   };
26   build-system = [ hatchling ];
28   dependencies = [ elastic-transport ];
30   optional-dependencies = {
31     requests = [ requests ];
32     async = [ aiohttp ];
33     orjson = [ orjson ];
34     pyarrow = [ pyarrow ];
35   };
37   pythonImportsCheck = [ "elasticsearch" ];
39   # Check is disabled because running them destroy the content of the local cluster!
40   # https://github.com/elasticsearch/elasticsearch-py/tree/master/test_elasticsearch
41   doCheck = false;
43   meta = with lib; {
44     description = "Official low-level client for Elasticsearch";
45     homepage = "https://github.com/elasticsearch/elasticsearch-py";
46     changelog = "https://github.com/elastic/elasticsearch-py/releases/tag/v${version}";
47     license = licenses.asl20;
48     maintainers = with maintainers; [ desiderius ];
49   };