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