2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
42 lines
890 B
Nix
42 lines
890 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, googleapis-common-protos
|
|
, grpcio
|
|
, protobuf
|
|
, requests
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "clarifai-grpc";
|
|
version = "9.10.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-8jx2OP1VcQtGmen58r1k/w7srjSJC/53sNxFrRm7IXs=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|