2021-01-17 00:15:33 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, protobuf, grpcio, setuptools }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "grpcio-tools";
|
2022-09-09 14:08:57 +00:00
|
|
|
version = "1.48.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-09-09 14:08:57 +00:00
|
|
|
sha256 = "1178f2ea531f80cc2027ec64728df6ffc8e98cf1df61652a496eafd612127183";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace 'protobuf>=3.12.0, < 4.0dev' 'protobuf'
|
|
|
|
'';
|
|
|
|
|
2020-12-03 08:41:04 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
propagatedBuildInputs = [ protobuf grpcio setuptools ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# no tests in the package
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-17 00:15:33 +00:00
|
|
|
pythonImportsCheck = [ "grpc_tools" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Protobuf code generator for gRPC";
|
|
|
|
license = licenses.asl20;
|
|
|
|
homepage = "https://grpc.io/grpc/python/";
|
|
|
|
maintainers = with maintainers; [ ];
|
|
|
|
};
|
|
|
|
}
|