Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / elasticsearch8 / default.nix
blob3ab17cb180d0e214f5bb143ffeb90241636ba208
1 { lib
2 , aiohttp
3 , buildPythonPackage
4 , elastic-transport
5 , fetchPypi
6 , pythonOlder
7 , requests
8 , urllib3
9 }:
11 buildPythonPackage rec {
12   pname = "elasticsearch8";
13   version = "8.10.1";
14   format = "setuptools";
16   disabled = pythonOlder "3.7";
18   src = fetchPypi {
19     inherit pname version;
20     hash = "sha256-naLy7xSqHlz8QNbQhM+iydJi8m6DQqBWlDLijOOT7ak=";
21   };
23   nativeBuildInputs = [
24     elastic-transport
25   ];
27   propagatedBuildInputs = [
28     requests
29   ];
31   passthru.optional-dependencies = {
32     async = [
33       aiohttp
34     ];
35   };
37   # Check is disabled because running them destroy the content of the local cluster!
38   # https://github.com/elasticsearch/elasticsearch-py/tree/main/test_elasticsearch
39   doCheck = false;
41   pythonImportsCheck = [
42     "elasticsearch8"
43   ];
45   meta = with lib; {
46     description = "Official low-level client for Elasticsearch";
47     homepage = "https://github.com/elasticsearch/elasticsearch-py";
48     changelog = "https://github.com/elastic/elasticsearch-py/releases/tag/v${version}";
49     license = licenses.asl20;
50     maintainers = with maintainers; [ fab ];
51   };