python312Packages.elasticsearch8: refactor

This commit is contained in:
Fabian Affolter 2024-05-23 00:50:40 +02:00
parent 3c468f4cee
commit b22d9f589d

View File

@ -4,15 +4,17 @@
buildPythonPackage,
elastic-transport,
fetchPypi,
orjson,
pythonOlder,
requests,
setuptools,
urllib3,
}:
buildPythonPackage rec {
pname = "elasticsearch8";
version = "8.13.1";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.7";
@ -21,12 +23,14 @@ buildPythonPackage rec {
hash = "sha256-jVi5yYPll7ej8lmDEbvcLCEdBbpMiZUi2n4AORre81E=";
};
nativeBuildInputs = [ elastic-transport ];
build-system = [ setuptools ];
propagatedBuildInputs = [ requests ];
dependencies = [ elastic-transport ];
passthru.optional-dependencies = {
async = [ aiohttp ];
requests = [ requests ];
orjson = [ orjson ];
};
# Check is disabled because running them destroy the content of the local cluster!