depot/third_party/nixpkgs/pkgs/development/python-modules/grpcio-reflection/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

42 lines
789 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonRelaxDepsHook
, grpcio
, protobuf
}:
buildPythonPackage rec {
pname = "grpcio-reflection";
version = "1.58.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-5gSKdY0XtsoXBSWOfuXZJtKWCpWuCLoJKd0jPlBazT0=";
};
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 ];
};
}