2021-01-16 11:56:48 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, protobuf, grpcio, setuptools }:
|
2018-07-05 07:14:51 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "grpcio-tools";
|
2023-04-19 04:20:00 +00:00
|
|
|
version = "1.54.0";
|
2022-11-21 04:20:00 +00:00
|
|
|
format = "setuptools";
|
2018-07-05 07:14:51 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-04-19 04:20:00 +00:00
|
|
|
hash = "sha256-33msv1mZcBjhMXE7cWov3bVVbhhA6fud5MpzvyBZWQ4=";
|
2018-07-05 07:14:51 +00:00
|
|
|
};
|
|
|
|
|
2022-09-28 16:13:22 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
2022-10-22 04:20:00 +00:00
|
|
|
--replace 'protobuf>=4.21.6,<5.0dev' 'protobuf'
|
2022-09-28 16:13:22 +00:00
|
|
|
'';
|
|
|
|
|
2020-11-08 23:08:53 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2018-07-05 07:14:51 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2020-09-17 14:23:16 +00:00
|
|
|
propagatedBuildInputs = [ protobuf grpcio setuptools ];
|
2018-07-05 07:14:51 +00:00
|
|
|
|
|
|
|
# no tests in the package
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-16 11:56:48 +00:00
|
|
|
pythonImportsCheck = [ "grpc_tools" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-07-05 07:14:51 +00:00
|
|
|
description = "Protobuf code generator for gRPC";
|
2019-08-03 21:21:00 +00:00
|
|
|
license = licenses.asl20;
|
2018-07-05 07:14:51 +00:00
|
|
|
homepage = "https://grpc.io/grpc/python/";
|
2020-02-26 14:21:12 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2018-07-05 07:14:51 +00:00
|
|
|
};
|
|
|
|
}
|