2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2021-01-09 10:05:03 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, google-api-core
|
2021-08-18 13:19:15 +00:00
|
|
|
, grpc-google-iam-v1
|
2021-01-09 10:05:03 +00:00
|
|
|
, libcst
|
|
|
|
, mock
|
|
|
|
, proto-plus
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-asyncio
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-tasks";
|
2021-10-01 09:20:50 +00:00
|
|
|
version = "2.5.2";
|
2021-01-09 10:05:03 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-10-01 09:20:50 +00:00
|
|
|
sha256 = "af870971187b3d58fc87a81323cabec1628fac910c6af82076dd6270b111f17e";
|
2021-01-09 10:05:03 +00:00
|
|
|
};
|
|
|
|
|
2021-08-18 13:19:15 +00:00
|
|
|
propagatedBuildInputs = [ google-api-core grpc-google-iam-v1 libcst proto-plus ];
|
2021-01-09 10:05:03 +00:00
|
|
|
|
|
|
|
checkInputs = [ mock pytestCheckHook pytest-asyncio ];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# requires credentials
|
|
|
|
"test_list_queues"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"google.cloud.tasks"
|
|
|
|
"google.cloud.tasks_v2"
|
|
|
|
"google.cloud.tasks_v2beta2"
|
|
|
|
"google.cloud.tasks_v2beta3"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-01-09 10:05:03 +00:00
|
|
|
description = "Cloud Tasks API API client library";
|
|
|
|
homepage = "https://github.com/googleapis/python-tasks";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
|
|
|
};
|
|
|
|
}
|