Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at lanzaboote 42 lines 889 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, pythonOlder 5, googleapis-common-protos 6, grpcio 7, protobuf 8, requests 9}: 10 11buildPythonPackage rec { 12 pname = "clarifai-grpc"; 13 version = "9.9.3"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.8"; 17 18 src = fetchPypi { 19 inherit pname version; 20 hash = "sha256-9h/d1w5toxWMHMvVkQiuHySf3+IjeumD4EipgI1kaEs="; 21 }; 22 23 propagatedBuildInputs = [ 24 googleapis-common-protos 25 grpcio 26 protobuf 27 requests 28 ]; 29 30 # almost all tests require network access 31 doCheck = false; 32 33 pythonImportsCheck = [ "clarifai_grpc" ]; 34 35 meta = with lib; { 36 description = "Clarifai gRPC API Client"; 37 homepage = "https://github.com/Clarifai/clarifai-python-grpc"; 38 changelog = "https://github.com/Clarifai/clarifai-python-grpc/releases/tag/${version}"; 39 license = licenses.asl20; 40 maintainers = with maintainers; [ natsukium ]; 41 }; 42}