b5f92a349c
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
42 lines
889 B
Nix
42 lines
889 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, googleapis-common-protos
|
|
, grpcio
|
|
, protobuf
|
|
, requests
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "clarifai-grpc";
|
|
version = "9.9.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-YZYawFGpGPK0T4MlWHwONqcx1fwcoZiNalhU2ydM+mo=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
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 ];
|
|
};
|
|
}
|