1{ lib 2, buildPythonPackage 3, fetchPypi 4, pytestCheckHook 5, db-dtypes 6, freezegun 7, google-cloud-bigquery-storage 8, google-cloud-core 9, google-cloud-datacatalog 10, google-cloud-storage 11, google-cloud-testutils 12, google-resumable-media 13, ipython 14, mock 15, pandas 16, proto-plus 17, psutil 18, pyarrow 19, pytest-xdist 20, pythonOlder 21}: 22 23buildPythonPackage rec { 24 pname = "google-cloud-bigquery"; 25 version = "3.3.5"; 26 format = "setuptools"; 27 28 disabled = pythonOlder "3.7"; 29 30 src = fetchPypi { 31 inherit pname version; 32 hash = "sha256-+7ZXmcAnVN3K7ZgfSotrAhtpzADUzZw1yh1swnLq2dE="; 33 }; 34 35 propagatedBuildInputs = [ 36 google-cloud-core 37 google-cloud-bigquery-storage 38 google-resumable-media 39 proto-plus 40 pyarrow 41 ]; 42 43 checkInputs = [ 44 db-dtypes 45 freezegun 46 google-cloud-testutils 47 ipython 48 mock 49 pandas 50 psutil 51 google-cloud-datacatalog 52 google-cloud-storage 53 pytestCheckHook 54 pytest-xdist 55 ]; 56 57 # prevent google directory from shadowing google imports 58 preCheck = '' 59 rm -r google 60 ''; 61 62 disabledTests = [ 63 # requires credentials 64 "test_bigquery_magic" 65 "TestBigQuery" 66 "test_context_with_no_query_cache_from_context" 67 "test_arrow_extension_types_same_for_storage_and_REST_APIs_894" 68 "test_list_rows_empty_table" 69 "test_list_rows_page_size" 70 "test_list_rows_scalars" 71 "test_list_rows_scalars_extreme" 72 "test_dry_run" 73 "test_session" 74 # Mocking of _ensure_bqstorage_client fails 75 "test_to_arrow_ensure_bqstorage_client_wo_bqstorage" 76 # requires network 77 "test_dbapi_create_view" 78 "test_list_rows_nullable_scalars_dtypes" 79 "test_parameterized_types_round_trip" 80 "test_structs" 81 "test_table_snapshots" 82 "test__initiate_resumable_upload" 83 "test__initiate_resumable_upload_mtls" 84 "test__initiate_resumable_upload_with_retry" 85 "test_table_clones" 86 ]; 87 88 disabledTestPaths = [ 89 # requires credentials 90 "tests/system/test_query.py" 91 "tests/system/test_job_retry.py" 92 "tests/system/test_pandas.py" 93 ]; 94 95 pythonImportsCheck = [ 96 "google.cloud.bigquery" 97 "google.cloud.bigquery_v2" 98 ]; 99 100 meta = with lib; { 101 description = "Google BigQuery API client library"; 102 homepage = "https://github.com/googleapis/python-bigquery"; 103 license = licenses.asl20; 104 maintainers = with maintainers; [ SuperSandro2000 ]; 105 }; 106}