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.15";
20 pyproject = true;
21
22 disabled = pythonOlder "3.8";
23
24 src = fetchPypi {
25 pname = "google_cloud_workstations";
26 inherit version;
27 hash = "sha256-/lpcGxxc1razAXmESpn6JfVYkqj5gRoLiyWM3vXlqWk=";
28 };
29
30 build-system = [ setuptools ];
31
32 dependencies = [
33 google-api-core
34 google-auth
35 grpc-google-iam-v1
36 proto-plus
37 protobuf
38 ]
39 ++ google-api-core.optional-dependencies.grpc;
40
41 nativeCheckInputs = [
42 mock
43 pytest-asyncio
44 pytestCheckHook
45 ];
46
47 pythonImportsCheck = [
48 "google.cloud.workstations"
49 "google.cloud.workstations_v1"
50 "google.cloud.workstations_v1beta"
51 ];
52
53 meta = with lib; {
54 description = "Python Client for Cloud Workstations";
55 homepage = "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-workstations";
56 changelog = "https://github.com/googleapis/google-cloud-python/blob/google-cloud-workstations-v${version}/packages/google-cloud-workstations/CHANGELOG.md";
57 license = licenses.asl20;
58 maintainers = with maintainers; [ fab ];
59 };
60}