python3Packages.google_cloud_bigquery: 1.26.1 -> 2.1.0
This commit is contained in:
parent
c4d8e9743a
commit
f2b0d07cf0
|
@ -1,42 +1,46 @@
|
||||||
{ stdenv
|
{ stdenv, buildPythonPackage, fetchPypi, pytestCheckHook, pythonOlder, freezegun
|
||||||
, buildPythonPackage
|
, google_api_core, google_cloud_core, google_cloud_testutils
|
||||||
, fetchPypi
|
, google_resumable_media, grpcio, ipython, mock, pandas, proto-plus, pyarrow }:
|
||||||
, freezegun
|
|
||||||
, google_resumable_media
|
|
||||||
, google_api_core
|
|
||||||
, google_cloud_core
|
|
||||||
, pandas
|
|
||||||
, pyarrow
|
|
||||||
, pytest
|
|
||||||
, mock
|
|
||||||
, ipython
|
|
||||||
}:
|
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "google-cloud-bigquery";
|
pname = "google-cloud-bigquery";
|
||||||
version = "1.26.1";
|
version = "2.1.0";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "51c29b95d460486d9e0210f63e8193691cd08480b69775270e84dd3db87c1bf2";
|
sha256 = "0x5g6n151rcdgq4s80f71zpsl7bsvyyrs07l58psdpyd3kwf4sbk";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ pytest mock ipython freezegun ];
|
disabled = pythonOlder "3.6";
|
||||||
propagatedBuildInputs = [ google_resumable_media google_api_core google_cloud_core pandas pyarrow ];
|
|
||||||
|
|
||||||
# prevent local directory from shadowing google imports
|
checkInputs =
|
||||||
# call_api_applying_custom_retry_on_timeout requires credentials
|
[ 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
|
||||||
# test_magics requires modifying sys.path
|
# test_magics requires modifying sys.path
|
||||||
checkPhase = ''
|
preCheck = ''
|
||||||
rm -r google
|
rm -r google
|
||||||
pytest tests/unit \
|
rm tests/unit/test_magics.py
|
||||||
-k 'not call_api_applying_custom_retry_on_timeout' \
|
|
||||||
--ignore=tests/unit/test_magics.py
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
# 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"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Google BigQuery API client library";
|
description = "Google BigQuery API client library";
|
||||||
homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
|
homepage = "https://pypi.org/project/google-cloud-bigquery";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
maintainers = [ maintainers.costrouc ];
|
maintainers = [ maintainers.costrouc ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue