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-shell"; 18 version = "1.12.1"; 19 pyproject = true; 20 21 disabled = pythonOlder "3.7"; 22 23 src = fetchPypi { 24 pname = "google_cloud_shell"; 25 inherit version; 26 hash = "sha256-nRuFxyxtJmKiI0BtV8VEu8mRZ5JU2S0gGU9aef9I6Zg="; 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.shell" 47 "google.cloud.shell_v1" 48 ]; 49 50 meta = with lib; { 51 description = "Python Client for Cloud Shell"; 52 homepage = "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-shell"; 53 changelog = "https://github.com/googleapis/google-cloud-python/blob/google-cloud-shell-v${version}/packages/google-cloud-shell/CHANGELOG.md"; 54 license = licenses.asl20; 55 maintainers = with maintainers; [ fab ]; 56 }; 57}