anki-bin: 24.06.3 -> 24.11 (#360722)
[NixPkgs.git] / pkgs / development / python-modules / elasticsearch-dsl / default.nix
blob2dd22d8c6e33144274c7dd1277b4a7db18aafbba
2   lib,
3   buildPythonPackage,
4   elasticsearch,
5   fetchPypi,
6   python-dateutil,
7   pythonOlder,
8   setuptools,
9   typing-extensions,
12 buildPythonPackage rec {
13   pname = "elasticsearch-dsl";
14   version = "8.16.0";
15   pyproject = true;
17   disabled = pythonOlder "3.8";
19   src = fetchPypi {
20     pname = "elasticsearch_dsl";
21     inherit version;
22     hash = "sha256-Bb1QUO730HBqRIfNIoZNPBWMjhy8omtT7xpHO97hNFk=";
23   };
25   build-system = [ setuptools ];
27   dependencies = [
28     elasticsearch
29     python-dateutil
30     typing-extensions
31   ];
33   optional-dependencies = {
34     async = [ elasticsearch ] ++ elasticsearch.optional-dependencies.async;
35   };
37   # ImportError: No module named test_elasticsearch_dsl
38   # Tests require a local instance of elasticsearch
39   doCheck = false;
41   meta = with lib; {
42     description = "High level Python client for Elasticsearch";
43     longDescription = ''
44       Elasticsearch DSL is a high-level library whose aim is to help with
45       writing and running queries against Elasticsearch. It is built on top of
46       the official low-level client (elasticsearch-py).
47     '';
48     homepage = "https://github.com/elasticsearch/elasticsearch-dsl-py";
49     changelog = "https://github.com/elastic/elasticsearch-dsl-py/blob/v${version}/Changelog.rst";
50     license = licenses.asl20;
51     maintainers = with maintainers; [ desiderius ];
52   };