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