2022-04-27 09:35:20 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2023-01-11 07:51:40 +00:00
|
|
|
, fastavro
|
2022-04-27 09:35:20 +00:00
|
|
|
, fetchPypi
|
|
|
|
, google-api-core
|
|
|
|
, google-auth
|
|
|
|
, google-cloud-bigquery
|
2023-01-11 07:51:40 +00:00
|
|
|
, pandas
|
|
|
|
, protobuf
|
|
|
|
, pyarrow
|
2022-04-27 09:35:20 +00:00
|
|
|
, pytestCheckHook
|
2023-01-11 07:51:40 +00:00
|
|
|
, pythonOlder
|
2022-04-27 09:35:20 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-bigquery-storage";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "2.22.0";
|
2023-01-11 07:51:40 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-9tjHs6ubV0xml3/O6dM24zStGjhDpyK+GRI2QOeAjqM=";
|
2022-04-27 09:35:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
google-api-core
|
2023-01-11 07:51:40 +00:00
|
|
|
protobuf
|
|
|
|
] ++ google-api-core.optional-dependencies.grpc;
|
|
|
|
|
|
|
|
passthru.optional-dependencies = {
|
|
|
|
fastavro = [
|
|
|
|
fastavro
|
|
|
|
];
|
|
|
|
pandas = [
|
|
|
|
pandas
|
|
|
|
];
|
|
|
|
pyarrow = [
|
|
|
|
pyarrow
|
|
|
|
];
|
|
|
|
};
|
2022-04-27 09:35:20 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-04-27 09:35:20 +00:00
|
|
|
google-auth
|
|
|
|
google-cloud-bigquery
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
# Dependency loop with google-cloud-bigquery
|
2022-04-27 09:35:20 +00:00
|
|
|
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";
|
2023-01-11 07:51:40 +00:00
|
|
|
changelog = "https://github.com/googleapis/python-bigquery-storage/blob/v${version}/CHANGELOG.md";
|
2022-04-27 09:35:20 +00:00
|
|
|
license = licenses.asl20;
|
2023-08-04 22:07:22 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2022-04-27 09:35:20 +00:00
|
|
|
};
|
|
|
|
}
|