Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 29 lines 692 B view raw
1{ lib, buildPythonPackage, fetchPypi, protobuf, grpcio, setuptools }: 2 3buildPythonPackage rec { 4 pname = "grpcio-tools"; 5 version = "1.38.0"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "c609678cf6faf4b467259757f848de4fbc7baca3c1e3f7b0e55c701c50fd94ae"; 10 }; 11 12 outputs = [ "out" "dev" ]; 13 14 enableParallelBuilding = true; 15 16 propagatedBuildInputs = [ protobuf grpcio setuptools ]; 17 18 # no tests in the package 19 doCheck = false; 20 21 pythonImportsCheck = [ "grpc_tools" ]; 22 23 meta = with lib; { 24 description = "Protobuf code generator for gRPC"; 25 license = licenses.asl20; 26 homepage = "https://grpc.io/grpc/python/"; 27 maintainers = with maintainers; [ ]; 28 }; 29}