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