From 18b46978eb3054a9393ea9bfa701999c36ac8cdb Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Wed, 16 Oct 2024 13:36:11 +0200 Subject: [PATCH] python312Packages.kserve: 0.13.1 -> 0.14.0 Diff: https://github.com/kserve/kserve/compare/refs/tags/v0.13.1...v0.14.0 Changelog: https://github.com/kserve/kserve/releases/tag/v0.14.0 --- .../python-modules/kserve/default.nix | 46 +++++++++---------- 1 file changed, 22 insertions(+), 24 deletions(-) diff --git a/pkgs/development/python-modules/kserve/default.nix b/pkgs/development/python-modules/kserve/default.nix index f11863d01409..c0f878a78ed4 100644 --- a/pkgs/development/python-modules/kserve/default.nix +++ b/pkgs/development/python-modules/kserve/default.nix @@ -1,7 +1,6 @@ { lib, buildPythonPackage, - pythonOlder, fetchFromGitHub, # build-system @@ -9,35 +8,38 @@ poetry-core, # dependencies - async-timeout, - asgi-logger, cloudevents, fastapi, grpcio, httpx, - azure-identity, kubernetes, numpy, orjson, pandas, - prometheus-client, - protobuf, - requests, - psutil, + uvicorn, + + # optional-dependencies + azure-identity, azure-storage-blob, azure-storage-file-share, boto3, google-cloud-storage, + huggingface-hub, + asgi-logger, + ray, + + prometheus-client, + protobuf, + requests, + psutil, pydantic, python-dateutil, pyyaml, - ray, six, tabulate, timing-asgi, - uvicorn, - # checks + # tests avro, grpcio-testing, pytest-asyncio, @@ -47,16 +49,14 @@ buildPythonPackage rec { pname = "kserve"; - version = "0.13.1"; + version = "0.14.0"; pyproject = true; - disabled = pythonOlder "3.8"; - src = fetchFromGitHub { owner = "kserve"; repo = "kserve"; rev = "refs/tags/v${version}"; - hash = "sha256-wGS001PK+k21oCOaQCiAtytTDjfe0aiTVJ9spyOucYA="; + hash = "sha256-N/IgiTiyBNw7WQWxcUJlXU+Q9o3UUaduD9ZBKwu0uRE="; }; sourceRoot = "${src.name}/python/kserve"; @@ -66,7 +66,6 @@ buildPythonPackage rec { "httpx" "prometheus-client" "protobuf" - "ray" "uvicorn" "psutil" ]; @@ -77,7 +76,6 @@ buildPythonPackage rec { ]; dependencies = [ - async-timeout cloudevents fastapi grpcio @@ -92,12 +90,11 @@ buildPythonPackage rec { pydantic python-dateutil pyyaml - ray six tabulate timing-asgi uvicorn - ] ++ ray.optional-dependencies.serve-deps; + ]; optional-dependencies = { storage = [ @@ -105,6 +102,7 @@ buildPythonPackage rec { azure-storage-blob azure-storage-file-share boto3 + huggingface-hub google-cloud-storage requests ]; @@ -129,11 +127,11 @@ buildPythonPackage rec { disabledTests = [ # Require network access - "test_health_handler" - "test_infer" - "test_infer_v2" - # Assertion error due to HTTP response code - "test_unload" + "test_infer_graph_endpoint" + "test_infer_path_based_routing" + + # Tries to access `/tmp` (hardcoded) + "test_local_path_with_out_dir_exist" ]; meta = {