{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, setuptools, googleapis-common-protos, grpcio, protobuf, requests, }: buildPythonPackage rec { pname = "clarifai-grpc"; version = "11.8.6"; pyproject = true; disabled = pythonOlder "3.8"; src = fetchFromGitHub { owner = "Clarifai"; repo = "clarifai-python-grpc"; tag = version; hash = "sha256-Fg55DTde95j2bkqILiWJaYWs4cGr0r9sH26iwikldDw="; }; build-system = [ setuptools ]; dependencies = [ googleapis-common-protos grpcio protobuf requests ]; pythonRelaxDeps = [ "grpcio" ]; # almost all tests require network access doCheck = false; pythonImportsCheck = [ "clarifai_grpc" ]; meta = { description = "Clarifai gRPC API Client"; homepage = "https://github.com/Clarifai/clarifai-python-grpc"; changelog = "https://github.com/Clarifai/clarifai-python-grpc/releases/tag/${src.tag}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ natsukium ]; }; }