2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2021-01-06 00:43:03 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytestCheckHook
|
|
|
|
, freezegun
|
2021-01-06 09:46:48 +00:00
|
|
|
, google-cloud-core
|
2021-08-16 13:02:57 +00:00
|
|
|
, google-cloud-datacatalog
|
2021-02-02 21:45:03 +00:00
|
|
|
, google-cloud-storage
|
2021-01-06 09:46:48 +00:00
|
|
|
, google-cloud-testutils
|
|
|
|
, google-resumable-media
|
2021-01-06 00:43:03 +00:00
|
|
|
, ipython
|
|
|
|
, mock
|
|
|
|
, pandas
|
|
|
|
, proto-plus
|
2021-02-02 21:45:03 +00:00
|
|
|
, psutil
|
2021-01-06 00:43:03 +00:00
|
|
|
, pyarrow
|
|
|
|
}:
|
2018-11-02 18:49:46 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-bigquery";
|
2021-08-26 04:06:16 +00:00
|
|
|
version = "2.25.1";
|
2018-11-02 18:49:46 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-08-26 04:06:16 +00:00
|
|
|
sha256 = "5ecf7c802cc6cf9cd79e79924616d8b7d35ba026f3313a4d90b8b4a28c72d93d";
|
2018-11-02 18:49:46 +00:00
|
|
|
};
|
|
|
|
|
2020-11-03 01:15:10 +00:00
|
|
|
propagatedBuildInputs = [
|
2021-01-06 09:46:48 +00:00
|
|
|
google-resumable-media
|
|
|
|
google-cloud-core
|
2020-11-03 01:15:10 +00:00
|
|
|
proto-plus
|
|
|
|
pyarrow
|
|
|
|
];
|
|
|
|
|
2021-01-06 00:43:03 +00:00
|
|
|
checkInputs = [
|
|
|
|
freezegun
|
2021-01-06 09:46:48 +00:00
|
|
|
google-cloud-testutils
|
2021-01-06 00:43:03 +00:00
|
|
|
ipython
|
|
|
|
mock
|
|
|
|
pandas
|
2021-02-02 21:45:03 +00:00
|
|
|
psutil
|
2021-08-16 13:02:57 +00:00
|
|
|
google-cloud-datacatalog
|
2021-02-02 21:45:03 +00:00
|
|
|
google-cloud-storage
|
2021-01-06 00:43:03 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2020-11-03 01:15:10 +00:00
|
|
|
# prevent google directory from shadowing google imports
|
|
|
|
preCheck = ''
|
2020-03-18 22:07:55 +00:00
|
|
|
rm -r google
|
2018-11-02 18:49:46 +00:00
|
|
|
'';
|
|
|
|
|
2021-02-02 21:45:03 +00:00
|
|
|
disabledTests = [
|
|
|
|
# requires credentials
|
|
|
|
"test_bigquery_magic"
|
|
|
|
"TestBigQuery"
|
2021-08-23 21:29:11 +00:00
|
|
|
"test_query_retry_539"
|
|
|
|
"test_query_retry_539"
|
|
|
|
"test_list_rows_empty_table"
|
|
|
|
"test_list_rows_page_size"
|
|
|
|
"test_list_rows_scalars"
|
|
|
|
"test_list_rows_scalars_extreme"
|
2021-06-06 21:08:28 +00:00
|
|
|
# Mocking of _ensure_bqstorage_client fails
|
|
|
|
"test_to_arrow_ensure_bqstorage_client_wo_bqstorage"
|
2021-08-16 13:02:57 +00:00
|
|
|
# requires network
|
|
|
|
"test_dbapi_create_view"
|
|
|
|
"test_list_rows_nullable_scalars_dtypes"
|
|
|
|
"test_parameterized_types_round_trip"
|
|
|
|
"test_structs"
|
|
|
|
"test_table_snapshots"
|
2021-02-02 21:45:03 +00:00
|
|
|
];
|
|
|
|
|
2021-01-06 00:43:03 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"google.cloud.bigquery"
|
|
|
|
"google.cloud.bigquery_v2"
|
2020-11-03 01:15:10 +00:00
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-11-02 18:49:46 +00:00
|
|
|
description = "Google BigQuery API client library";
|
2021-01-06 00:43:03 +00:00
|
|
|
homepage = "https://github.com/googleapis/python-bigquery";
|
2018-11-02 18:49:46 +00:00
|
|
|
license = licenses.asl20;
|
2021-01-06 00:43:03 +00:00
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
2018-11-02 18:49:46 +00:00
|
|
|
};
|
|
|
|
}
|