1{ stdenv
2, buildPythonPackage
3, fetchPypi
4, google_resumable_media
5, google_api_core
6, google_cloud_core
7, pandas
8, pyarrow
9, pytest
10, mock
11, ipython
12}:
13
14buildPythonPackage rec {
15 pname = "google-cloud-bigquery";
16 version = "1.9.0";
17
18 src = fetchPypi {
19 inherit pname version;
20 sha256 = "169ffdb1b677f69f1f9d032bd38f724aed73e0565153ac17199472c083a3852f";
21 };
22
23 checkInputs = [ pytest mock ipython ];
24 propagatedBuildInputs = [ google_resumable_media google_api_core google_cloud_core pandas pyarrow ];
25
26 checkPhase = ''
27 pytest tests/unit
28 '';
29
30 meta = with stdenv.lib; {
31 description = "Google BigQuery API client library";
32 homepage = https://github.com/GoogleCloudPlatform/google-cloud-python;
33 license = licenses.asl20;
34 maintainers = [ maintainers.costrouc ];
35 };
36}