fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
45 lines
884 B
Nix
45 lines
884 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
googleapis-common-protos,
|
|
grpcio,
|
|
protobuf,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "grpcio-status";
|
|
version = "1.62.2";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-YuG/ywICWhzXNzKi0zZy0+nQ300hwSxR4LvK8JurdCo=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace 'protobuf>=4.21.6' 'protobuf'
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|