1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 googleapis-common-protos,
6 grpcio,
7 protobuf,
8 pythonOlder,
9}:
10
11buildPythonPackage rec {
12 pname = "grpcio-status";
13 version = "1.64.1";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.6";
17
18 src = fetchPypi {
19 pname = "grpcio_status";
20 inherit version;
21 hash = "sha256-xQvRTrZQbYWApsVTvqRj18CEmbLA6T9tGGTF6Oq7EGY=";
22 };
23
24 postPatch = ''
25 substituteInPlace setup.py \
26 --replace 'protobuf>=4.21.6' 'protobuf'
27 '';
28
29 propagatedBuildInputs = [
30 googleapis-common-protos
31 grpcio
32 protobuf
33 ];
34
35 # Projec thas no tests
36 doCheck = false;
37
38 pythonImportsCheck = [ "grpc_status" ];
39
40 meta = with lib; {
41 description = "GRPC Python status proto mapping";
42 homepage = "https://github.com/grpc/grpc/tree/master/src/python/grpcio_status";
43 license = licenses.asl20;
44 maintainers = with maintainers; [ fab ];
45 };
46}