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 = "3.31.3";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "googleapis";
18 repo = "google-cloud-python";
19 tag = "google-cloud-build-v${version}";
20 hash = "sha256-qQ+8X6I8lt4OTgbvODsbdab2dYUk0wxWsbaVT2T651U=";
21 };
22
23 sourceRoot = "${src.name}/packages/grpc-google-iam-v1";
24
25 build-system = [ setuptools ];
26
27 dependencies = [
28 grpcio
29 googleapis-common-protos
30 ];
31
32 nativeCheckInputs = [ pytestCheckHook ];
33
34 pythonImportsCheck = [
35 "google.iam"
36 "google.iam.v1"
37 ];
38
39 pytestFlags = [
40 "-Wignore::DeprecationWarning"
41 ];
42
43 meta = with lib; {
44 description = "GRPC library for the google-iam-v1 service";
45 homepage = "https://github.com/googleapis/google-cloud-python/tree/main/packages/grpc-google-iam-v1";
46 changelog = "https://github.com/googleapis/google-cloud-python/blob/${src.tag}/packages/grpc-google-iam-v1/CHANGELOG.md";
47 license = licenses.asl20;
48 maintainers = [ ];
49 };
50}