Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / elasticsearch / default.nix
bloba89cb3f0a4c5ebdd83723cf4b9c0876be5bda54c
1 { lib
2 , aiohttp
3 , buildPythonPackage
4 , certifi
5 , elastic-transport
6 , fetchPypi
7 , pythonOlder
8 , requests
9 , urllib3
12 buildPythonPackage rec {
13   pname = "elasticsearch";
14   version = "8.12.1";
15   format = "setuptools";
17   disabled = pythonOlder "3.7";
19   src = fetchPypi {
20     inherit pname version;
21     sha256 = "sha256-AMmXcg+9Dyr+VBfIGTz2XRFoF6AlDeBSHjDD6B8AuKw=";
22   };
24   nativeBuildInputs = [
25     elastic-transport
26   ];
28   propagatedBuildInputs = [
29     urllib3
30     certifi
31   ];
33   passthru.optional-dependencies = {
34     requests = [
35       requests
36     ];
37     async = [
38       aiohttp
39     ];
40   };
42   pythonImportsCheck = [
43     "elasticsearch"
44   ];
46   # Check is disabled because running them destroy the content of the local cluster!
47   # https://github.com/elasticsearch/elasticsearch-py/tree/master/test_elasticsearch
48   doCheck = false;
50   meta = with lib; {
51     description = "Official low-level client for Elasticsearch";
52     homepage = "https://github.com/elasticsearch/elasticsearch-py";
53     changelog = "https://github.com/elastic/elasticsearch-py/releases/tag/v${version}";
54     license = licenses.asl20;
55     maintainers = with maintainers; [ desiderius ];
56   };