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.14"; 20 pyproject = true; 21 22 disabled = pythonOlder "3.8"; 23 24 src = fetchPypi { 25 pname = "google_cloud_workstations"; 26 inherit version; 27 hash = "sha256-LwIsVouAh/obOaGx+EvT8gmEJ+NdQNSsfkwEtoxE07I="; 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 ] ++ google-api-core.optional-dependencies.grpc; 39 40 nativeCheckInputs = [ 41 mock 42 pytest-asyncio 43 pytestCheckHook 44 ]; 45 46 pythonImportsCheck = [ 47 "google.cloud.workstations" 48 "google.cloud.workstations_v1" 49 "google.cloud.workstations_v1beta" 50 ]; 51 52 meta = with lib; { 53 description = "Python Client for Cloud Workstations"; 54 homepage = "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-workstations"; 55 changelog = "https://github.com/googleapis/google-cloud-python/blob/google-cloud-workstations-v${version}/packages/google-cloud-workstations/CHANGELOG.md"; 56 license = licenses.asl20; 57 maintainers = with maintainers; [ fab ]; 58 }; 59}