blob: b56be1c1b275f395c756964c8378933e623f601f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
{
lib,
buildPythonPackage,
fetchPypi,
# build-system
setuptools,
# dependencies
azure-identity,
azure-storage-blob,
azure-storage-file-share,
boto3,
google-cloud-storage,
huggingface-hub,
requests,
# tests
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "kserve-storage";
version = "0.16.0";
pyproject = true;
src = fetchPypi {
pname = "kserve_storage";
inherit version;
hash = "sha256-xgLnWegsPF18RLxwxt0dfnrZwsX7AK3b8AdT594Bac4=";
};
build-system = [
setuptools
];
pythonRelaxDeps = [
"google-cloud-storage"
];
dependencies = [
azure-identity
azure-storage-blob
azure-storage-file-share
boto3
google-cloud-storage
huggingface-hub
requests
];
pythonImportsCheck = [ "kserve_storage" ];
nativeCheckInputs = [
pytestCheckHook
];
disabledTests = [
# RuntimeError: Failed to fetch model. No model found in file:///tmp.
"test_local_path_with_out_dir_exist"
];
meta = {
description = "KServe Storage Handler. This module is responsible to download the models from the provided source";
homepage = "https://pypi.org/project/kserve-storage";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ GaetanLepage ];
};
}
|