1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 googleapis-common-protos,
6 grpcio,
7 pytestCheckHook,
8 setuptools,
9}:
10
11buildPythonPackage rec {
12 pname = "grpc-google-iam-v1";
13 version = "0.13.0";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "googleapis";
18 repo = "python-grpc-google-iam-v1";
19 rev = "refs/tags/v${version}";
20 hash = "sha256-pmwHDzOaXrgqXZiaxIn01CtiAG+XRBGr8BgzbG/F1uw=";
21 };
22
23 nativeBuildInputs = [ setuptools ];
24
25 propagatedBuildInputs = [
26 grpcio
27 googleapis-common-protos
28 ];
29
30 nativeCheckInputs = [ pytestCheckHook ];
31
32 pythonImportsCheck = [
33 "google.iam"
34 "google.iam.v1"
35 ];
36
37 pytestFlagsArray = [
38 "-W"
39 "ignore::DeprecationWarning"
40 ];
41
42 meta = with lib; {
43 description = "GRPC library for the google-iam-v1 service";
44 homepage = "https://github.com/googleapis/python-grpc-google-iam-v1";
45 changelog = "https://github.com/googleapis/python-grpc-google-iam-v1/releases/tag/v${version}";
46 license = licenses.asl20;
47 maintainers = [ ];
48 };
49}