2024-04-21 15:54:59 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
|
|
|
googleapis-common-protos,
|
|
|
|
grpcio,
|
|
|
|
protobuf,
|
|
|
|
requests,
|
2023-07-15 17:15:38 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "clarifai-grpc";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "10.6.6";
|
2024-01-02 11:29:13 +00:00
|
|
|
pyproject = true;
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Clarifai";
|
|
|
|
repo = "clarifai-python-grpc";
|
|
|
|
rev = "refs/tags/${version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-UnMIl+fB5BA0LTurHN2XpMlhvOzvAgveLG+EuQE2WG4=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
build-system = [ setuptools ];
|
2024-01-02 11:29:13 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
dependencies = [
|
2023-07-15 17:15:38 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|