depot/third_party/nixpkgs/pkgs/development/python-modules/clarifai-grpc/default.nix

43 lines
890 B
Nix
Raw Normal View History

{ 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 ];
};
}