Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 24.05-beta 48 lines 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 setuptools, 7 googleapis-common-protos, 8 grpcio, 9 protobuf, 10 requests, 11}: 12 13buildPythonPackage rec { 14 pname = "clarifai-grpc"; 15 version = "10.3.4"; 16 pyproject = true; 17 18 disabled = pythonOlder "3.8"; 19 20 src = fetchFromGitHub { 21 owner = "Clarifai"; 22 repo = "clarifai-python-grpc"; 23 rev = "refs/tags/${version}"; 24 hash = "sha256-1Yx00g2Cd9/41DZYK5cRwcFQv2qD6B4cl4cpVZ6slTA="; 25 }; 26 27 build-system = [ setuptools ]; 28 29 dependencies = [ 30 googleapis-common-protos 31 grpcio 32 protobuf 33 requests 34 ]; 35 36 # almost all tests require network access 37 doCheck = false; 38 39 pythonImportsCheck = [ "clarifai_grpc" ]; 40 41 meta = with lib; { 42 description = "Clarifai gRPC API Client"; 43 homepage = "https://github.com/Clarifai/clarifai-python-grpc"; 44 changelog = "https://github.com/Clarifai/clarifai-python-grpc/releases/tag/${version}"; 45 license = licenses.asl20; 46 maintainers = with maintainers; [ natsukium ]; 47 }; 48}