mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
37 lines
802 B
Nix
37 lines
802 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.6.0";
|
||
|
|
||
|
src = fetchPypi {
|
||
|
inherit pname version;
|
||
|
sha256 = "d559ba1e05cf6a960e09bb5aab3aeb4d50ad9e08c77a20a17c01c9b2bd8d6cb7";
|
||
|
};
|
||
|
|
||
|
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 ];
|
||
|
};
|
||
|
}
|