Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 24.05-beta 45 lines 884 B view raw
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.62.2"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.6"; 17 18 src = fetchPypi { 19 inherit pname version; 20 hash = "sha256-YuG/ywICWhzXNzKi0zZy0+nQ300hwSxR4LvK8JurdCo="; 21 }; 22 23 postPatch = '' 24 substituteInPlace setup.py \ 25 --replace 'protobuf>=4.21.6' 'protobuf' 26 ''; 27 28 propagatedBuildInputs = [ 29 googleapis-common-protos 30 grpcio 31 protobuf 32 ]; 33 34 # Projec thas no tests 35 doCheck = false; 36 37 pythonImportsCheck = [ "grpc_status" ]; 38 39 meta = with lib; { 40 description = "GRPC Python status proto mapping"; 41 homepage = "https://github.com/grpc/grpc/tree/master/src/python/grpcio_status"; 42 license = licenses.asl20; 43 maintainers = with maintainers; [ fab ]; 44 }; 45}