1{ stdenv, buildPythonPackage, fetchPypi, python
2, google_api_core, grpcio, pytest, mock, setuptools }:
3
4buildPythonPackage rec {
5 pname = "google-cloud-core";
6 version = "1.1.0";
7
8 src = fetchPypi {
9 inherit pname version;
10 sha256 = "49036087c1170c3fad026e45189f17092b8c584a9accb2d73d1854f494e223ae";
11 };
12
13 propagatedBuildInputs = [ google_api_core grpcio setuptools ];
14 checkInputs = [ pytest mock ];
15
16 checkPhase = ''
17 cd tests
18 ${python.interpreter} -m unittest discover
19 '';
20
21 meta = with stdenv.lib; {
22 description = "API Client library for Google Cloud: Core Helpers";
23 homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
24 license = licenses.asl20;
25 maintainers = with maintainers; [ vanschelven ];
26 };
27}