2021-11-29 11:15:23 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
googleapis-common-protos,
|
|
|
|
grpcio,
|
|
|
|
protobuf,
|
|
|
|
pythonOlder,
|
|
|
|
}:
|
|
|
|
|
2024-10-16 16:53:39 +00:00
|
|
|
# This package should be updated together with the main grpc package and other
|
|
|
|
# related python grpc packages.
|
|
|
|
# nixpkgs-update: no auto update
|
2021-11-29 11:15:23 +00:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "grpcio-status";
|
2024-10-22 08:52:50 +00:00
|
|
|
version = "1.67.0";
|
2021-11-29 11:15:23 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
2024-06-19 03:05:50 +00:00
|
|
|
pname = "grpcio_status";
|
|
|
|
inherit version;
|
2024-10-22 08:52:50 +00:00
|
|
|
hash = "sha256-w+Wob6AH6eJjzV+YioqQdITaTKq1godOoqSmCSc0BGs=";
|
2021-11-29 11:15:23 +00:00
|
|
|
};
|
|
|
|
|
2022-09-28 16:01:03 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
2022-10-22 04:20:00 +00:00
|
|
|
--replace 'protobuf>=4.21.6' 'protobuf'
|
2022-09-28 16:01:03 +00:00
|
|
|
'';
|
|
|
|
|
2021-11-29 11:15:23 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|