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