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, isPy38
13}:
14
15buildPythonPackage rec {
16 pname = "google-cloud-bigquery";
17 version = "1.23.1";
18
19 src = fetchPypi {
20 inherit pname version;
21 sha256 = "99c341592d711d8f131fe80d842f7e1b04b2ca1faefa1ffedf4dec1b382cebf6";
22 };
23
24 checkInputs = [ pytest mock ipython ];
25 propagatedBuildInputs = [ google_resumable_media google_api_core google_cloud_core pandas pyarrow ];
26
27 checkPhase = ''
28 pytest tests/unit
29 '';
30
31 meta = with stdenv.lib; {
32 description = "Google BigQuery API client library";
33 homepage = https://github.com/GoogleCloudPlatform/google-cloud-python;
34 license = licenses.asl20;
35 maintainers = [ maintainers.costrouc ];
36 broken = isPy38;
37 };
38}