1{ lib
2, buildPythonPackage
3, fetchPypi
4, google-api-core
5, google-auth
6, google-cloud-bigquery
7, pytestCheckHook
8}:
9
10buildPythonPackage rec {
11 pname = "google-cloud-bigquery-storage";
12 version = "2.16.2";
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "sha256-5qyk97b06tuH+FEJBhd1Y1GOFYfIt7FivPjhyede9BY=";
17 };
18
19 propagatedBuildInputs = [
20 google-api-core
21 ];
22
23 checkInputs = [
24 google-auth
25 google-cloud-bigquery
26 pytestCheckHook
27 ];
28
29 # dependency loop with google-cloud-bigquery
30 doCheck = false;
31
32 preCheck = ''
33 rm -r google
34 '';
35
36 pythonImportsCheck = [
37 "google.cloud.bigquery_storage"
38 "google.cloud.bigquery_storage_v1"
39 "google.cloud.bigquery_storage_v1beta2"
40 ];
41
42 meta = with lib; {
43 description = "BigQuery Storage API API client library";
44 homepage = "https://github.com/googleapis/python-bigquery-storage";
45 license = licenses.asl20;
46 maintainers = with maintainers; [ SuperSandro2000 ];
47 };
48}