2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-11-02 20:26:30 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-01-06 09:46:48 +00:00
|
|
|
, google-api-core
|
2021-01-05 13:44:42 +00:00
|
|
|
, grpc_google_iam_v1
|
|
|
|
, libcst
|
2019-02-03 10:56:30 +00:00
|
|
|
, mock
|
2021-01-05 13:44:42 +00:00
|
|
|
, proto-plus
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-asyncio
|
2018-11-02 20:26:30 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-tasks";
|
2021-02-25 04:25:38 +00:00
|
|
|
version = "2.2.0";
|
2018-11-02 20:26:30 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-25 04:25:38 +00:00
|
|
|
sha256 = "6be2f2bca14b4eb1c1bdb0f4ba1dadf791e79a2a3e1fae762e5631a3d9fe094e";
|
2018-11-02 20:26:30 +00:00
|
|
|
};
|
|
|
|
|
2021-01-06 09:46:48 +00:00
|
|
|
propagatedBuildInputs = [ google-api-core grpc_google_iam_v1 libcst proto-plus ];
|
2021-01-05 13:44:42 +00:00
|
|
|
|
|
|
|
checkInputs = [ mock pytestCheckHook pytest-asyncio ];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# requires credentials
|
|
|
|
"test_list_queues"
|
|
|
|
];
|
2018-11-02 20:26:30 +00:00
|
|
|
|
2021-01-05 13:44:42 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"google.cloud.tasks"
|
|
|
|
"google.cloud.tasks_v2"
|
|
|
|
"google.cloud.tasks_v2beta2"
|
|
|
|
"google.cloud.tasks_v2beta3"
|
|
|
|
];
|
2018-11-02 20:26:30 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-11-02 20:26:30 +00:00
|
|
|
description = "Cloud Tasks API API client library";
|
2021-01-05 13:44:42 +00:00
|
|
|
homepage = "https://github.com/googleapis/python-tasks";
|
2018-11-02 20:26:30 +00:00
|
|
|
license = licenses.asl20;
|
2021-01-05 13:44:42 +00:00
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
2018-11-02 20:26:30 +00:00
|
|
|
};
|
|
|
|
}
|