1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 googleapis-common-protos,
7 grpcio,
8 protobuf,
9 requests,
10}:
11
12buildPythonPackage rec {
13 pname = "clarifai-grpc";
14 version = "11.9.3";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "Clarifai";
19 repo = "clarifai-python-grpc";
20 tag = version;
21 hash = "sha256-kKA+D9mIogSvx5dLqc7WSzMMZWZvSvu+RV0WtxWb2xQ=";
22 };
23
24 build-system = [ setuptools ];
25
26 dependencies = [
27 googleapis-common-protos
28 grpcio
29 protobuf
30 requests
31 ];
32
33 pythonRelaxDeps = [
34 "grpcio"
35 ];
36
37 # almost all tests require network access
38 doCheck = false;
39
40 pythonImportsCheck = [ "clarifai_grpc" ];
41
42 meta = {
43 description = "Clarifai gRPC API Client";
44 homepage = "https://github.com/Clarifai/clarifai-python-grpc";
45 changelog = "https://github.com/Clarifai/clarifai-python-grpc/releases/tag/${src.tag}";
46 license = lib.licenses.asl20;
47 maintainers = with lib.maintainers; [ natsukium ];
48 };
49}