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