1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 google-api-core,
6 google-auth,
7 mock,
8 proto-plus,
9 protobuf,
10 pytest-asyncio,
11 pytestCheckHook,
12 pythonOlder,
13 setuptools,
14}:
15
16buildPythonPackage rec {
17 pname = "google-cloud-vpc-access";
18 version = "1.13.2";
19 pyproject = true;
20
21 disabled = pythonOlder "3.8";
22
23 src = fetchPypi {
24 pname = "google_cloud_vpc_access";
25 inherit version;
26 hash = "sha256-bfTho0kyaAQRWjAZJWFd/NFJ+EY7ZEtdOGcbb3MnJ6s=";
27 };
28
29 build-system = [ setuptools ];
30
31 dependencies = [
32 google-api-core
33 google-auth
34 proto-plus
35 protobuf
36 ]
37 ++ google-api-core.optional-dependencies.grpc;
38
39 nativeCheckInputs = [
40 mock
41 pytest-asyncio
42 pytestCheckHook
43 ];
44
45 pythonImportsCheck = [
46 "google.cloud.vpcaccess"
47 "google.cloud.vpcaccess_v1"
48 ];
49
50 meta = with lib; {
51 description = "Python Client for Virtual Private Cloud";
52 homepage = "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-vpc-access";
53 changelog = "https://github.com/googleapis/google-cloud-python/blob/google-cloud-vpc-access-v${version}/packages/google-cloud-vpc-access/CHANGELOG.md";
54 license = licenses.asl20;
55 maintainers = with maintainers; [ fab ];
56 };
57}