1{ stdenv, buildPythonPackage, fetchPypi, python
2, google_api_core, grpcio, pytest, mock, setuptools }:
3
4buildPythonPackage rec {
5 pname = "google-cloud-core";
6 version = "1.4.1";
7
8 src = fetchPypi {
9 inherit pname version;
10 sha256 = "613e56f164b6bee487dd34f606083a0130f66f42f7b10f99730afdf1630df507";
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; [ ];
26 };
27}