2021-01-06 00:43:03 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytestCheckHook
|
|
|
|
, freezegun
|
|
|
|
, 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-12-16 20:13:39 +00:00
|
|
|
version = "2.6.1";
|
2018-11-02 18:49:46 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-01-06 00:43:03 +00:00
|
|
|
sha256 = "1vs4im0fixmszh6p77icys9g7fymwmkfc6va0ng9kpjv1h6gv68z";
|
2018-11-02 18:49:46 +00:00
|
|
|
};
|
|
|
|
|
2020-11-03 01:15:10 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
google_resumable_media
|
|
|
|
google_cloud_core
|
|
|
|
proto-plus
|
|
|
|
pyarrow
|
|
|
|
];
|
|
|
|
|
2021-01-06 00:43:03 +00:00
|
|
|
checkInputs = [
|
|
|
|
freezegun
|
|
|
|
google_cloud_testutils
|
|
|
|
ipython
|
|
|
|
mock
|
|
|
|
pandas
|
|
|
|
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-01-06 00:43:03 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"google.cloud.bigquery"
|
|
|
|
"google.cloud.bigquery_v2"
|
2020-11-03 01:15:10 +00:00
|
|
|
];
|
|
|
|
|
2018-11-02 18:49:46 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|