python3Packages.grpcio-status: init at 1.42.0

This commit is contained in:
Fabian Affolter 2021-11-29 12:15:23 +01:00 committed by Jonathan Ringer
parent 904bb80628
commit 9a0cdde9ab
No known key found for this signature in database
GPG Key ID: 5C841D3CFDFEC4E0
2 changed files with 44 additions and 0 deletions

View File

@ -0,0 +1,42 @@
{ lib
, buildPythonPackage
, fetchPypi
, googleapis-common-protos
, grpc
, grpcio
, protobuf
, pythonOlder
}:
buildPythonPackage rec {
pname = "grpcio-status";
inherit (grpc) version;
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "JVM8TWXX1ROmOPDEuIsrZnAOO/Q+aZWlWjvRXsC3eQI=";
};
propagatedBuildInputs = [
googleapis-common-protos
grpcio
protobuf
];
# Projec thas no tests
doCheck = false;
pythonImportsCheck = [
"grpc_status"
];
meta = with lib; {
description = "GRPC Python status proto mapping";
homepage = "https://github.com/grpc/grpc/tree/master/src/python/grpcio_status";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -3398,6 +3398,8 @@ in {
grpcio-gcp = callPackage ../development/python-modules/grpcio-gcp { };
grpcio-status = callPackage ../development/python-modules/grpcio-status { };
grpcio-tools = callPackage ../development/python-modules/grpcio-tools { };
gruut = callPackage ../development/python-modules/gruut { };