1{ lib
2, buildPythonPackage
3, fetchPypi
4, google-api-core
5, grpc-google-iam-v1
6, libcst
7, mock
8, proto-plus
9, pytest-asyncio
10, pytestCheckHook
11, pythonOlder
12}:
13
14buildPythonPackage rec {
15 pname = "google-cloud-tasks";
16 version = "2.10.4";
17 format = "setuptools";
18
19 disabled = pythonOlder "3.7";
20
21 src = fetchPypi {
22 inherit pname version;
23 hash = "sha256-ZQ9PQ75yWEEQNyfqO8EyJ66euqL5na2q1TiIgxz8HXA=";
24 };
25
26 propagatedBuildInputs = [
27 google-api-core
28 grpc-google-iam-v1
29 libcst
30 proto-plus
31 ];
32
33 checkInputs = [
34 mock
35 pytest-asyncio
36 pytestCheckHook
37 ];
38
39 disabledTests = [
40 # requires credentials
41 "test_list_queues"
42 ];
43
44 pythonImportsCheck = [
45 "google.cloud.tasks"
46 "google.cloud.tasks_v2"
47 "google.cloud.tasks_v2beta2"
48 "google.cloud.tasks_v2beta3"
49 ];
50
51 meta = with lib; {
52 description = "Cloud Tasks API API client library";
53 homepage = "https://github.com/googleapis/python-tasks";
54 license = licenses.asl20;
55 maintainers = with maintainers; [ SuperSandro2000 ];
56 };
57}