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