depot/third_party/nixpkgs/pkgs/development/python-modules/google-cloud-bigquery-storage/default.nix
Default email ed0c4a69f0 Project import generated by Copybara.
GitOrigin-RevId: e3652e0735fbec227f342712f180f4f21f0594f2
2023-03-31 00:05:00 +02:00

70 lines
1.4 KiB
Nix

{ lib
, buildPythonPackage
, fastavro
, fetchPypi
, google-api-core
, google-auth
, google-cloud-bigquery
, pandas
, protobuf
, pyarrow
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "google-cloud-bigquery-storage";
version = "2.19.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-DZtfQqcD8yELSzrUWhgTkZH5NHQP3zYpsbIv2VrfC7o=";
};
propagatedBuildInputs = [
google-api-core
protobuf
] ++ google-api-core.optional-dependencies.grpc;
passthru.optional-dependencies = {
fastavro = [
fastavro
];
pandas = [
pandas
];
pyarrow = [
pyarrow
];
};
nativeCheckInputs = [
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";
changelog = "https://github.com/googleapis/python-bigquery-storage/blob/v${version}/CHANGELOG.md";
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}