nixpkgs-suyu/pkgs/development/python-modules/google-cloud-bigquery/default.nix
2021-01-25 18:31:47 +01:00

58 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, freezegun
, google-cloud-core
, google-cloud-testutils
, google-resumable-media
, grpcio
, ipython
, mock
, pandas
, proto-plus
, pyarrow
}:
buildPythonPackage rec {
pname = "google-cloud-bigquery";
version = "2.6.2";
src = fetchPypi {
inherit pname version;
sha256 = "1c940bf190a681d80b6f6cd7541924ad411de5f0585b2c8c5e420ab750e2024d";
};
propagatedBuildInputs = [
google-resumable-media
google-cloud-core
proto-plus
pyarrow
];
checkInputs = [
freezegun
google-cloud-testutils
ipython
mock
pandas
pytestCheckHook
];
# prevent google directory from shadowing google imports
preCheck = ''
rm -r google
'';
pythonImportsCheck = [
"google.cloud.bigquery"
"google.cloud.bigquery_v2"
];
meta = with lib; {
description = "Google BigQuery API client library";
homepage = "https://github.com/googleapis/python-bigquery";
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}