2018-11-02 19:49:46 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, google_resumable_media
|
|
|
|
, google_api_core
|
|
|
|
, google_cloud_core
|
|
|
|
, pandas
|
|
|
|
, pyarrow
|
|
|
|
, pytest
|
|
|
|
, mock
|
|
|
|
, ipython
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-bigquery";
|
2019-12-19 20:31:11 +01:00
|
|
|
version = "1.23.1";
|
2018-11-02 19:49:46 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-12-19 20:31:11 +01:00
|
|
|
sha256 = "99c341592d711d8f131fe80d842f7e1b04b2ca1faefa1ffedf4dec1b382cebf6";
|
2018-11-02 19:49:46 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytest mock ipython ];
|
|
|
|
propagatedBuildInputs = [ google_resumable_media google_api_core google_cloud_core pandas pyarrow ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pytest tests/unit
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Google BigQuery API client library";
|
|
|
|
homepage = https://github.com/GoogleCloudPlatform/google-cloud-python;
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|