1{ lib 2, buildPythonPackage 3, fetchPypi 4, pytestCheckHook 5, freezegun 6, google-cloud-core 7, google-cloud-datacatalog 8, google-cloud-storage 9, google-cloud-testutils 10, google-resumable-media 11, ipython 12, mock 13, pandas 14, proto-plus 15, psutil 16, pyarrow 17}: 18 19buildPythonPackage rec { 20 pname = "google-cloud-bigquery"; 21 version = "2.28.1"; 22 23 src = fetchPypi { 24 inherit pname version; 25 sha256 = "sha256-DiNT2X5SktyM5URHtxL7nolJbnFLXKz8PVNmFNHEYdw="; 26 }; 27 28 propagatedBuildInputs = [ 29 google-resumable-media 30 google-cloud-core 31 proto-plus 32 pyarrow 33 ]; 34 35 checkInputs = [ 36 freezegun 37 google-cloud-testutils 38 ipython 39 mock 40 pandas 41 psutil 42 google-cloud-datacatalog 43 google-cloud-storage 44 pytestCheckHook 45 ]; 46 47 # prevent google directory from shadowing google imports 48 preCheck = '' 49 rm -r google 50 ''; 51 52 disabledTests = [ 53 # requires credentials 54 "test_bigquery_magic" 55 "TestBigQuery" 56 "test_arrow_extension_types_same_for_storage_and_REST_APIs_894" 57 "test_query_retry_539" 58 "test_list_rows_empty_table" 59 "test_list_rows_page_size" 60 "test_list_rows_scalars" 61 "test_list_rows_scalars_extreme" 62 # Mocking of _ensure_bqstorage_client fails 63 "test_to_arrow_ensure_bqstorage_client_wo_bqstorage" 64 # requires network 65 "test_dbapi_create_view" 66 "test_list_rows_nullable_scalars_dtypes" 67 "test_parameterized_types_round_trip" 68 "test_structs" 69 "test_table_snapshots" 70 ]; 71 72 pythonImportsCheck = [ 73 "google.cloud.bigquery" 74 "google.cloud.bigquery_v2" 75 ]; 76 77 meta = with lib; { 78 description = "Google BigQuery API client library"; 79 homepage = "https://github.com/googleapis/python-bigquery"; 80 license = licenses.asl20; 81 maintainers = with maintainers; [ SuperSandro2000 ]; 82 }; 83}