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