depot/third_party/nixpkgs/pkgs/development/python-modules/google-cloud-bigquery-storage/default.nix
Default email b41113241d Project import generated by Copybara.
GitOrigin-RevId: ae1dc133ea5f1538d035af41e5ddbc2ebcb67b90
2022-09-22 14:36:57 +02:00

48 lines
974 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, google-api-core
, google-auth
, google-cloud-bigquery
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "google-cloud-bigquery-storage";
version = "2.16.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-5CIRh3g4MLRMo5MwalOjJYIgM3eoiHI6i7MVMs9c04Q=";
};
propagatedBuildInputs = [
google-api-core
];
checkInputs = [
google-auth
google-cloud-bigquery
pytestCheckHook
];
# dependency loop with google-cloud-bigquery
doCheck = false;
preCheck = ''
rm -r google
'';
pythonImportsCheck = [
"google.cloud.bigquery_storage"
"google.cloud.bigquery_storage_v1"
"google.cloud.bigquery_storage_v1beta2"
];
meta = with lib; {
description = "BigQuery Storage API API client library";
homepage = "https://github.com/googleapis/python-bigquery-storage";
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}