2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fastavro,
|
|
|
|
fetchPypi,
|
|
|
|
google-api-core,
|
|
|
|
google-auth,
|
|
|
|
google-cloud-bigquery,
|
|
|
|
pandas,
|
|
|
|
protobuf,
|
|
|
|
pyarrow,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
2022-04-27 09:35:20 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-bigquery-storage";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "2.25.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;
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-GV/9KxgOnqoivqs+QKC2Hs0UbssyZnz0Immo1xEbTUg=";
|
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 = {
|
2024-06-05 15:53:02 +00:00
|
|
|
fastavro = [ fastavro ];
|
|
|
|
pandas = [ pandas ];
|
|
|
|
pyarrow = [ pyarrow ];
|
2023-01-11 07:51:40 +00:00
|
|
|
};
|
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";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "fixup_bigquery_storage_v1_keywords.py";
|
2022-04-27 09:35:20 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|