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