nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
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 setuptools,
13}:
14
15buildPythonPackage rec {
16 pname = "google-cloud-shell";
17 version = "1.14.0";
18 pyproject = true;
19
20 src = fetchPypi {
21 pname = "google_cloud_shell";
22 inherit version;
23 hash = "sha256-hnlYocYjIiPjO4HparvKTC0pFtRXAkRVB9O9TYHOjFU=";
24 };
25
26 build-system = [ setuptools ];
27
28 dependencies = [
29 google-api-core
30 google-auth
31 proto-plus
32 protobuf
33 ]
34 ++ google-api-core.optional-dependencies.grpc;
35
36 nativeCheckInputs = [
37 mock
38 pytest-asyncio
39 pytestCheckHook
40 ];
41
42 pythonImportsCheck = [
43 "google.cloud.shell"
44 "google.cloud.shell_v1"
45 ];
46
47 meta = {
48 description = "Python Client for Cloud Shell";
49 homepage = "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-shell";
50 changelog = "https://github.com/googleapis/google-cloud-python/blob/google-cloud-shell-v${version}/packages/google-cloud-shell/CHANGELOG.md";
51 license = lib.licenses.asl20;
52 maintainers = with lib.maintainers; [ fab ];
53 };
54}