diff --git a/pkgs/development/python-modules/grpcio-reflection/default.nix b/pkgs/development/python-modules/grpcio-reflection/default.nix new file mode 100644 index 00000000000..886df4537ed --- /dev/null +++ b/pkgs/development/python-modules/grpcio-reflection/default.nix @@ -0,0 +1,42 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pythonRelaxDepsHook +, grpcio +, protobuf +}: + +buildPythonPackage rec { + pname = "grpcio-reflection"; + version = "1.56.2"; + format = "setuptools"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-dKgXZq9jmrjxt/WVMdyBRkD0obzwEtwGzmviBbUKOUw="; + }; + + nativeBuildInputs = [ + pythonRelaxDepsHook + ]; + pythonRelaxDeps = [ + "grpcio" + ]; + + propagatedBuildInputs = [ + grpcio + protobuf + ]; + + pythonImportsCheck = [ "grpc_reflection" ]; + + # no tests + doCheck = false; + + meta = with lib; { + description = "Standard Protobuf Reflection Service for gRPC"; + homepage = "https://pypi.org/project/grpcio-reflection"; + license = with licenses; [ asl20 ]; + maintainers = with maintainers; [ happysalada ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 0452b44a7af..87edab702ac 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4517,9 +4517,11 @@ self: super: with self; { grpcio-channelz = callPackage ../development/python-modules/grpcio-channelz { }; + grpcio-gcp = callPackage ../development/python-modules/grpcio-gcp { }; + grpcio-health-checking = callPackage ../development/python-modules/grpcio-health-checking { }; - grpcio-gcp = callPackage ../development/python-modules/grpcio-gcp { }; + grpcio-reflection = callPackage ../development/python-modules/grpcio-reflection { }; grpcio-status = callPackage ../development/python-modules/grpcio-status { };