1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 google-api-core, 6 grpc-google-iam-v1, 7 mock, 8 proto-plus, 9 protobuf, 10 pytest-asyncio, 11 pytestCheckHook, 12 pythonOlder, 13 setuptools, 14}: 15 16buildPythonPackage rec { 17 pname = "google-cloud-tasks"; 18 version = "2.19.2"; 19 pyproject = true; 20 21 disabled = pythonOlder "3.7"; 22 23 src = fetchPypi { 24 pname = "google_cloud_tasks"; 25 inherit version; 26 hash = "sha256-J2tH6F9IJZI6d41UP8BzXkskvkX3P6fZZK0WVUAtB9w="; 27 }; 28 29 build-system = [ setuptools ]; 30 31 dependencies = [ 32 google-api-core 33 grpc-google-iam-v1 34 proto-plus 35 protobuf 36 ] ++ google-api-core.optional-dependencies.grpc; 37 38 nativeCheckInputs = [ 39 mock 40 pytest-asyncio 41 pytestCheckHook 42 ]; 43 44 disabledTests = [ 45 # Test requires credentials 46 "test_list_queues" 47 ]; 48 49 pythonImportsCheck = [ 50 "google.cloud.tasks" 51 "google.cloud.tasks_v2" 52 "google.cloud.tasks_v2beta2" 53 "google.cloud.tasks_v2beta3" 54 ]; 55 56 meta = with lib; { 57 description = "Cloud Tasks API API client library"; 58 homepage = "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-tasks"; 59 changelog = "https://github.com/googleapis/google-cloud-python/blob/google-cloud-tasks-v${version}/packages/google-cloud-tasks/CHANGELOG.md"; 60 license = licenses.asl20; 61 maintainers = [ ]; 62 }; 63}