diff --git a/pkgs/development/python-modules/elasticsearch/default.nix b/pkgs/development/python-modules/elasticsearch/default.nix index 68621f96c151..9133ae2d9694 100644 --- a/pkgs/development/python-modules/elasticsearch/default.nix +++ b/pkgs/development/python-modules/elasticsearch/default.nix @@ -2,36 +2,36 @@ lib, aiohttp, buildPythonPackage, - certifi, elastic-transport, fetchPypi, + hatchling, + orjson, + pyarrow, pythonOlder, requests, - urllib3, }: buildPythonPackage rec { pname = "elasticsearch"; - version = "8.14.0"; - format = "setuptools"; + version = "8.15.1"; + pyproject = true; - disabled = pythonOlder "3.7"; + disabled = pythonOlder "3.8"; src = fetchPypi { inherit pname version; - hash = "sha256-qiSQAp3Zb0AVszPBgnqiH9bApNIjsA37D+kzuNCaURs="; + hash = "sha256-QMDTEvit+L3IF5W8FqC1Rt31RMsfkOgpokTkeAxNv9g="; }; - nativeBuildInputs = [ elastic-transport ]; + build-system = [ hatchling ]; - propagatedBuildInputs = [ - urllib3 - certifi - ]; + dependencies = [ elastic-transport ]; optional-dependencies = { requests = [ requests ]; async = [ aiohttp ]; + orjson = [ orjson ]; + pyarrow = [ pyarrow ]; }; pythonImportsCheck = [ "elasticsearch" ];