2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
googleapis-common-protos,
|
|
|
|
grpcio,
|
|
|
|
protobuf,
|
|
|
|
pythonOlder,
|
2021-12-26 17:43:05 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "grpcio-status";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "1.64.1";
|
2021-12-26 17:43:05 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
2024-07-27 06:49:29 +00:00
|
|
|
pname = "grpcio_status";
|
|
|
|
inherit version;
|
|
|
|
hash = "sha256-xQvRTrZQbYWApsVTvqRj18CEmbLA6T9tGGTF6Oq7EGY=";
|
2021-12-26 17:43:05 +00:00
|
|
|
};
|
|
|
|
|
2022-11-02 22:02:43 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace 'protobuf>=4.21.6' 'protobuf'
|
|
|
|
'';
|
|
|
|
|
2021-12-26 17:43:05 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
googleapis-common-protos
|
|
|
|
grpcio
|
|
|
|
protobuf
|
|
|
|
];
|
|
|
|
|
|
|
|
# Projec thas no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "grpc_status" ];
|
2021-12-26 17:43:05 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|