159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
48 lines
1,012 B
Nix
48 lines
1,012 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pythonOlder,
|
|
setuptools,
|
|
googleapis-common-protos,
|
|
grpcio,
|
|
protobuf,
|
|
requests,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "clarifai-grpc";
|
|
version = "10.8.4";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Clarifai";
|
|
repo = "clarifai-python-grpc";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-5HDPEFn43JQyNTp9nJapBpoigoFtgyPZ5HXulMsjc8s=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
googleapis-common-protos
|
|
grpcio
|
|
protobuf
|
|
requests
|
|
];
|
|
|
|
# almost all tests require network access
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "clarifai_grpc" ];
|
|
|
|
meta = with lib; {
|
|
description = "Clarifai gRPC API Client";
|
|
homepage = "https://github.com/Clarifai/clarifai-python-grpc";
|
|
changelog = "https://github.com/Clarifai/clarifai-python-grpc/releases/tag/${version}";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ natsukium ];
|
|
};
|
|
}
|