gRPC-haskell/nix/grpc-pin/grpcio-tools.nix
2022-07-29 03:13:05 +03:00

31 lines
746 B
Nix

# Copy-paste from nixpkgs “release-22.05” branch
{ lib, buildPythonPackage, fetchPypi, protobuf, grpcio, setuptools }:
buildPythonPackage rec {
pname = "grpcio-tools";
version = "1.46.3";
src = fetchPypi {
inherit pname version;
sha256 = "31fee436ace5b3bd950cc3a8e68d6b84de1d6dc755959db7badc3470cdf22f70";
};
outputs = [ "out" "dev" ];
enableParallelBuilding = true;
propagatedBuildInputs = [ protobuf grpcio setuptools ];
# no tests in the package
doCheck = false;
pythonImportsCheck = [ "grpc_tools" ];
meta = with lib; {
description = "Protobuf code generator for gRPC";
license = licenses.asl20;
homepage = "https://grpc.io/grpc/python/";
maintainers = with maintainers; [ ];
};
}