python311Packages.kserve: init at 0.12.1

This commit is contained in:
Gaetan Lepage 2024-04-16 22:25:04 +02:00
parent fb13727a25
commit d432a28e0b
2 changed files with 121 additions and 0 deletions

View File

@ -0,0 +1,119 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, deprecation
, poetry-core
, pythonRelaxDepsHook
, 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
, pytestCheckHook
, tomlkit
}:
buildPythonPackage rec {
pname = "kserve";
version = "0.12.1";
pyproject = true;
src = fetchFromGitHub {
owner = "kserve";
repo = "kserve";
rev = "refs/tags/v${version}";
hash = "sha256-gKJkG8zJY1sGGpI27YZ/QnEPU8J7KHva3nI+JCglQaQ=";
};
sourceRoot = "${src.name}/python/kserve";
build-system = [
deprecation
poetry-core
];
nativeBuildInputs = [
pythonRelaxDepsHook
];
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"
];
pythonImportsCheck = [ "kserve" ];
nativeCheckInputs = [
avro
azure-storage-blob
azure-storage-file-share
boto3
botocore
google-cloud-storage
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"
];
meta = with lib; {
description = "Standardized Serverless ML Inference Platform on Kubernetes";
homepage = "https://github.com/kserve/kserve/tree/master/python/kserve";
license = licenses.asl20;
maintainers = with maintainers; [ GaetanLepage ];
};
}

View File

@ -6409,6 +6409,8 @@ self: super: with self; {
krfzf-py = callPackage ../development/python-modules/krfzf-py { };
kserve = callPackage ../development/python-modules/kserve { };
kubernetes = callPackage ../development/python-modules/kubernetes { };
kurbopy = callPackage ../development/python-modules/kurbopy { };