1{ lib 2, buildPythonPackage 3, fetchPypi 4, google-api-core 5, grpc-google-iam-v1 6, mock 7, proto-plus 8, protobuf 9, pytest-asyncio 10, pytestCheckHook 11, pythonOlder 12}: 13 14buildPythonPackage rec { 15 pname = "google-cloud-tasks"; 16 version = "2.14.2"; 17 format = "setuptools"; 18 19 disabled = pythonOlder "3.7"; 20 21 src = fetchPypi { 22 inherit pname version; 23 hash = "sha256-PvsoDnpjX1eGCgajRhMcEXBC6CCtSDr9JWgA+uG01wE="; 24 }; 25 26 propagatedBuildInputs = [ 27 google-api-core 28 grpc-google-iam-v1 29 proto-plus 30 protobuf 31 ] ++ google-api-core.optional-dependencies.grpc; 32 33 nativeCheckInputs = [ 34 mock 35 pytest-asyncio 36 pytestCheckHook 37 ]; 38 39 disabledTests = [ 40 # Test 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 changelog = "https://github.com/googleapis/python-tasks/blob/v${version}/CHANGELOG.md"; 55 license = licenses.asl20; 56 maintainers = with maintainers; [ ]; 57 }; 58}