1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 setuptools,
6 grpcio,
7 protobuf,
8}:
9
10# This package should be updated together with the main grpc package and other
11# related python grpc packages.
12# nixpkgs-update: no auto update
13buildPythonPackage rec {
14 pname = "grpcio-reflection";
15 version = "1.74.0";
16 pyproject = true;
17
18 src = fetchPypi {
19 pname = "grpcio_reflection";
20 inherit version;
21 hash = "sha256-xzJ9JSDc2sIJhy6/V3dMMjlkba2ILkq7Ste+vMrKLIM=";
22 };
23
24 build-system = [ setuptools ];
25
26 pythonRelaxDeps = [
27 "grpcio"
28 "protobuf"
29 ];
30
31 dependencies = [
32 grpcio
33 protobuf
34 ];
35
36 pythonImportsCheck = [ "grpc_reflection" ];
37
38 # no tests
39 doCheck = false;
40
41 meta = with lib; {
42 description = "Standard Protobuf Reflection Service for gRPC";
43 homepage = "https://pypi.org/project/grpcio-reflection";
44 license = with licenses; [ asl20 ];
45 maintainers = with maintainers; [ happysalada ];
46 };
47}