pythonPackages.google_cloud_bigquery: Cleanups
This commit is contained in:
parent
00d6056151
commit
692345a570
@ -1,6 +1,18 @@
|
|||||||
{ stdenv, buildPythonPackage, fetchPypi, pytestCheckHook, pythonOlder, freezegun
|
{ stdenv
|
||||||
, google_api_core, google_cloud_core, google_cloud_testutils
|
, buildPythonPackage
|
||||||
, google_resumable_media, grpcio, ipython, mock, pandas, proto-plus, pyarrow }:
|
, fetchPypi
|
||||||
|
, pytestCheckHook
|
||||||
|
, freezegun
|
||||||
|
, google_cloud_core
|
||||||
|
, google_cloud_testutils
|
||||||
|
, google_resumable_media
|
||||||
|
, grpcio
|
||||||
|
, ipython
|
||||||
|
, mock
|
||||||
|
, pandas
|
||||||
|
, proto-plus
|
||||||
|
, pyarrow
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "google-cloud-bigquery";
|
pname = "google-cloud-bigquery";
|
||||||
@ -8,40 +20,39 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "1f99fd0c0c5bde999e056a1be666e5d5bbf392f62c9e730dfcbaf6e8408d44ef";
|
sha256 = "1vs4im0fixmszh6p77icys9g7fymwmkfc6va0ng9kpjv1h6gv68z";
|
||||||
};
|
};
|
||||||
|
|
||||||
disabled = pythonOlder "3.6";
|
|
||||||
|
|
||||||
checkInputs =
|
|
||||||
[ freezegun google_cloud_testutils ipython mock pytestCheckHook ];
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
google_resumable_media
|
google_resumable_media
|
||||||
google_api_core
|
|
||||||
google_cloud_core
|
google_cloud_core
|
||||||
pandas
|
|
||||||
proto-plus
|
proto-plus
|
||||||
pyarrow
|
pyarrow
|
||||||
];
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
freezegun
|
||||||
|
google_cloud_testutils
|
||||||
|
ipython
|
||||||
|
mock
|
||||||
|
pandas
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
# prevent google directory from shadowing google imports
|
# prevent google directory from shadowing google imports
|
||||||
# test_magics requires modifying sys.path
|
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
rm -r google
|
rm -r google
|
||||||
rm tests/unit/test_magics.py
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# call_api_applying_custom_retry_on_timeout requires credentials
|
pythonImportsCheck = [
|
||||||
# to_dataframe_timestamp_out_of_pyarrow_bounds has inconsistent results
|
"google.cloud.bigquery"
|
||||||
disabledTests = [
|
"google.cloud.bigquery_v2"
|
||||||
"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://pypi.org/project/google-cloud-bigquery";
|
homepage = "https://github.com/googleapis/python-bigquery";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
maintainers = [ maintainers.costrouc ];
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user