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.19.2"; 20 pyproject = true; 21 22 disabled = pythonOlder "3.7"; 23 24 src = fetchPypi { 25 pname = "google_cloud_bigquery_datatransfer"; 26 inherit version; 27 hash = "sha256-l/9g7Sc6umoVdPf6kzE08gRmLH6co2dLJ8mdLPLXtN8="; 28 }; 29 30 build-system = [ setuptools ]; 31 32 dependencies = [ 33 google-api-core 34 libcst 35 proto-plus 36 protobuf 37 pytz 38 ] 39 ++ google-api-core.optional-dependencies.grpc; 40 41 nativeCheckInputs = [ 42 mock 43 pytest-asyncio 44 pytestCheckHook 45 ]; 46 47 pythonImportsCheck = [ 48 "google.cloud.bigquery_datatransfer" 49 "google.cloud.bigquery_datatransfer_v1" 50 ]; 51 52 disabledTests = [ 53 # Tests require project ID 54 "test_list_data_sources" 55 ]; 56 57 meta = with lib; { 58 description = "BigQuery Data Transfer API client library"; 59 homepage = "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-bigquery-datatransfer"; 60 changelog = "https://github.com/googleapis/google-cloud-python/blob/google-cloud-bigquery-datatransfer-v${version}/packages/google-cloud-bigquery-datatransfer/CHANGELOG.md"; 61 license = licenses.asl20; 62 maintainers = [ ]; 63 }; 64}