blob: 0b90905a475b0c723610715d0147eeab2d8483e1 (
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
68
69
70
71
72
|
{
lib,
stdenv,
buildPythonPackage,
fetchPypi,
numpy,
python-rapidjson,
# optional dependencies
aiohttp,
geventhttpclient,
grpcio,
packaging,
}:
let
pname = "tritonclient";
version = "2.54.0";
format = "wheel";
in
buildPythonPackage rec {
inherit pname version format;
src =
let
platforms = {
aarch64-linux = "manylinux2014_aarch64";
x86_64-linux = "manylinux1_x86_64";
};
hashes = {
aarch64-linux = "e485a67c75121a2b58456bd6275086252dd72208674b0c85bd57a60f428b686f";
x86_64-linux = "53c326498e9036f99347a938d52abd819743e957223edec31ae3c9681e5a6065";
};
in
fetchPypi {
inherit pname version format;
python = "py3";
dist = "py3";
platform =
platforms.${stdenv.hostPlatform.system}
or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
sha256 =
hashes.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
};
propagatedBuildInputs = [
numpy
python-rapidjson
];
pythonImportsCheck = [ "tritonclient" ];
passthru = {
optional-dependencies = {
http = [
aiohttp
geventhttpclient
];
grpc = [
grpcio
packaging
];
};
};
meta = {
description = "Triton Python client";
homepage = "https://github.com/triton-inference-server/client";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ happysalada ];
platforms = lib.platforms.linux;
};
}
|