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