2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
2024-06-20 14:57:18 +00:00
|
|
|
pythonOlder,
|
2024-06-05 15:53:02 +00:00
|
|
|
fetchFromGitHub,
|
|
|
|
deprecation,
|
|
|
|
poetry-core,
|
|
|
|
async-timeout,
|
|
|
|
cloudevents,
|
|
|
|
fastapi,
|
|
|
|
grpcio,
|
|
|
|
httpx,
|
|
|
|
kubernetes,
|
|
|
|
numpy,
|
|
|
|
orjson,
|
|
|
|
pandas,
|
|
|
|
prometheus-client,
|
|
|
|
protobuf,
|
|
|
|
psutil,
|
|
|
|
python-dateutil,
|
|
|
|
ray,
|
|
|
|
six,
|
|
|
|
tabulate,
|
|
|
|
timing-asgi,
|
|
|
|
uvicorn,
|
|
|
|
avro,
|
|
|
|
azure-storage-blob,
|
|
|
|
azure-storage-file-share,
|
|
|
|
boto3,
|
|
|
|
botocore,
|
|
|
|
google-cloud-storage,
|
2024-06-20 14:57:18 +00:00
|
|
|
grpcio-testing,
|
2024-06-05 15:53:02 +00:00
|
|
|
pytestCheckHook,
|
|
|
|
tomlkit,
|
2024-05-15 15:35:15 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "kserve";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "0.13.0";
|
2024-05-15 15:35:15 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kserve";
|
|
|
|
repo = "kserve";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-Fu+1AR7FU4EQ+PhMneHFr3at3N9cN7V24wm/VOfY8GA=";
|
2024-05-15 15:35:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
sourceRoot = "${src.name}/python/kserve";
|
|
|
|
|
|
|
|
build-system = [
|
|
|
|
deprecation
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
async-timeout
|
|
|
|
cloudevents
|
|
|
|
fastapi
|
|
|
|
grpcio
|
|
|
|
httpx
|
|
|
|
kubernetes
|
|
|
|
numpy
|
|
|
|
orjson
|
|
|
|
pandas
|
|
|
|
prometheus-client
|
|
|
|
protobuf
|
|
|
|
psutil
|
|
|
|
python-dateutil
|
|
|
|
ray
|
|
|
|
six
|
|
|
|
tabulate
|
|
|
|
timing-asgi
|
|
|
|
uvicorn
|
|
|
|
] ++ ray.passthru.optional-dependencies.serve-deps;
|
|
|
|
|
|
|
|
pythonRelaxDeps = [
|
|
|
|
"fastapi"
|
|
|
|
"httpx"
|
|
|
|
"prometheus-client"
|
|
|
|
"protobuf"
|
|
|
|
"ray"
|
|
|
|
"uvicorn"
|
2024-07-27 06:49:29 +00:00
|
|
|
"psutil"
|
2024-05-15 15:35:15 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "kserve" ];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
avro
|
|
|
|
azure-storage-blob
|
|
|
|
azure-storage-file-share
|
|
|
|
boto3
|
|
|
|
botocore
|
|
|
|
google-cloud-storage
|
2024-06-20 14:57:18 +00:00
|
|
|
grpcio-testing
|
2024-05-15 15:35:15 +00:00
|
|
|
pytestCheckHook
|
|
|
|
tomlkit
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTestPaths = [
|
|
|
|
# Looks for a config file at the root of the repository
|
|
|
|
"test/test_inference_service_client.py"
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# Require network access
|
|
|
|
"test_health_handler"
|
|
|
|
"test_infer"
|
|
|
|
"test_infer_v2"
|
|
|
|
];
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
meta = {
|
2024-05-15 15:35:15 +00:00
|
|
|
description = "Standardized Serverless ML Inference Platform on Kubernetes";
|
|
|
|
homepage = "https://github.com/kserve/kserve/tree/master/python/kserve";
|
2024-06-20 14:57:18 +00:00
|
|
|
changelog = "https://github.com/kserve/kserve/releases/tag/v${version}";
|
|
|
|
license = lib.licenses.asl20;
|
|
|
|
maintainers = with lib.maintainers; [ GaetanLepage ];
|
2024-05-15 15:35:15 +00:00
|
|
|
};
|
|
|
|
}
|