2020-11-03 01:15:10 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, pytestCheckHook, pythonOlder, freezegun
|
|
|
|
, google_api_core, google_cloud_core, google_cloud_testutils
|
|
|
|
, google_resumable_media, grpcio, ipython, mock, pandas, proto-plus, pyarrow }:
|
2018-11-02 18:49:46 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-bigquery";
|
2020-11-29 14:04:29 +00:00
|
|
|
version = "2.4.0";
|
2018-11-02 18:49:46 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-29 14:04:29 +00:00
|
|
|
sha256 = "2d53d6fed1c25c9c0ce361dad1c64203c96b2344f7156357a501630d1cb08445";
|
2018-11-02 18:49:46 +00:00
|
|
|
};
|
|
|
|
|
2020-11-03 01:15:10 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2018-11-02 18:49:46 +00:00
|
|
|
|
2020-11-03 01:15:10 +00:00
|
|
|
checkInputs =
|
|
|
|
[ freezegun google_cloud_testutils ipython mock pytestCheckHook ];
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
google_resumable_media
|
|
|
|
google_api_core
|
|
|
|
google_cloud_core
|
|
|
|
pandas
|
|
|
|
proto-plus
|
|
|
|
pyarrow
|
|
|
|
];
|
|
|
|
|
|
|
|
# prevent google directory from shadowing google imports
|
2020-03-18 22:07:55 +00:00
|
|
|
# test_magics requires modifying sys.path
|
2020-11-03 01:15:10 +00:00
|
|
|
preCheck = ''
|
2020-03-18 22:07:55 +00:00
|
|
|
rm -r google
|
2020-11-03 01:15:10 +00:00
|
|
|
rm tests/unit/test_magics.py
|
2018-11-02 18:49:46 +00:00
|
|
|
'';
|
|
|
|
|
2020-11-03 01:15:10 +00:00
|
|
|
# call_api_applying_custom_retry_on_timeout requires credentials
|
|
|
|
# to_dataframe_timestamp_out_of_pyarrow_bounds has inconsistent results
|
|
|
|
disabledTests = [
|
|
|
|
"call_api_applying_custom_retry_on_timeout"
|
|
|
|
"to_dataframe_timestamp_out_of_pyarrow_bounds"
|
|
|
|
];
|
|
|
|
|
2018-11-02 18:49:46 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Google BigQuery API client library";
|
2020-11-03 01:15:10 +00:00
|
|
|
homepage = "https://pypi.org/project/google-cloud-bigquery";
|
2018-11-02 18:49:46 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|