diff --git a/pkgs/development/python-modules/elasticsearch-dsl/default.nix b/pkgs/development/python-modules/elasticsearch-dsl/default.nix index bd9b460356cb..4c5abd162b56 100644 --- a/pkgs/development/python-modules/elasticsearch-dsl/default.nix +++ b/pkgs/development/python-modules/elasticsearch-dsl/default.nix @@ -1,28 +1,39 @@ { lib, buildPythonPackage, - fetchPypi, elasticsearch, + fetchPypi, python-dateutil, - six, + pythonOlder, + setuptools, + typing-extensions, }: buildPythonPackage rec { pname = "elasticsearch-dsl"; - version = "8.14.0"; - format = "setuptools"; + version = "8.15.3"; + pyproject = true; + + disabled = pythonOlder "3.8"; src = fetchPypi { - inherit pname version; - hash = "sha256-MmxtzPMvH/PUyEiJOIWQd4REuhj3cK3uUvJHIcuXxMc="; + pname = "elasticsearch_dsl"; + inherit version; + hash = "sha256-QAX6Gr71wK3FJmiWwxd9Dpj/WsSWA8Nt2pBY1hb3klc="; }; - propagatedBuildInputs = [ + build-system = [ setuptools ]; + + dependencies = [ elasticsearch python-dateutil - six + typing-extensions ]; + optional-dependencies = { + async = [ elasticsearch ] ++ elasticsearch.optional-dependencies.async; + }; + # ImportError: No module named test_elasticsearch_dsl # Tests require a local instance of elasticsearch doCheck = false; @@ -35,6 +46,7 @@ buildPythonPackage rec { the official low-level client (elasticsearch-py). ''; homepage = "https://github.com/elasticsearch/elasticsearch-dsl-py"; + changelog = "https://github.com/elastic/elasticsearch-dsl-py/blob/v${version}/Changelog.rst"; license = licenses.asl20; maintainers = with maintainers; [ desiderius ]; };