1{ lib 2, buildPythonPackage 3, fetchPypi 4, googleapis-common-protos 5, grpcio 6, protobuf 7, pythonOlder 8}: 9 10buildPythonPackage rec { 11 pname = "grpcio-status"; 12 version = "1.59.0"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.6"; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-+TucM+CiYWLvhDG/z/zD4fshfM2Ne1swYbbp+BPmmLU="; 20 }; 21 22 postPatch = '' 23 substituteInPlace setup.py \ 24 --replace 'protobuf>=4.21.6' 'protobuf' 25 ''; 26 27 propagatedBuildInputs = [ 28 googleapis-common-protos 29 grpcio 30 protobuf 31 ]; 32 33 # Projec thas no tests 34 doCheck = false; 35 36 pythonImportsCheck = [ 37 "grpc_status" 38 ]; 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}