36 lines
803 B
Nix
36 lines
803 B
Nix
{ stdenv
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, google_resumable_media
|
|
, google_api_core
|
|
, google_cloud_core
|
|
, pandas
|
|
, pyarrow
|
|
, pytest
|
|
, mock
|
|
, ipython
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "google-cloud-bigquery";
|
|
version = "1.21.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "b38d5669235583ee4334d468b3719ea4a381da4b2abbedbf13cb926d893a11ab";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|