1{ lib 2, buildPythonPackage 3, fastavro 4, fetchPypi 5, google-api-core 6, google-auth 7, google-cloud-bigquery 8, pandas 9, protobuf 10, pyarrow 11, pytestCheckHook 12, pythonOlder 13}: 14 15buildPythonPackage rec { 16 pname = "google-cloud-bigquery-storage"; 17 version = "2.22.0"; 18 format = "setuptools"; 19 20 disabled = pythonOlder "3.7"; 21 22 src = fetchPypi { 23 inherit pname version; 24 hash = "sha256-9tjHs6ubV0xml3/O6dM24zStGjhDpyK+GRI2QOeAjqM="; 25 }; 26 27 propagatedBuildInputs = [ 28 google-api-core 29 protobuf 30 ] ++ google-api-core.optional-dependencies.grpc; 31 32 passthru.optional-dependencies = { 33 fastavro = [ 34 fastavro 35 ]; 36 pandas = [ 37 pandas 38 ]; 39 pyarrow = [ 40 pyarrow 41 ]; 42 }; 43 44 nativeCheckInputs = [ 45 google-auth 46 google-cloud-bigquery 47 pytestCheckHook 48 ]; 49 50 # Dependency loop with google-cloud-bigquery 51 doCheck = false; 52 53 preCheck = '' 54 rm -r google 55 ''; 56 57 pythonImportsCheck = [ 58 "google.cloud.bigquery_storage" 59 "google.cloud.bigquery_storage_v1" 60 "google.cloud.bigquery_storage_v1beta2" 61 ]; 62 63 meta = with lib; { 64 description = "BigQuery Storage API API client library"; 65 homepage = "https://github.com/googleapis/python-bigquery-storage"; 66 changelog = "https://github.com/googleapis/python-bigquery-storage/blob/v${version}/CHANGELOG.md"; 67 license = licenses.asl20; 68 maintainers = with maintainers; [ ]; 69 }; 70}