1{ lib
2, buildPythonPackage
3, fetchPypi
4, django
5, flask
6, google-api-core
7, google-cloud-core
8, google-cloud-testutils
9, mock
10, proto-plus
11, pytestCheckHook
12, pytest-asyncio
13, webapp2
14}:
15
16buildPythonPackage rec {
17 pname = "google-cloud-logging";
18 version = "2.3.1";
19
20 src = fetchPypi {
21 inherit pname version;
22 sha256 = "sha256-yi3lG7tKi2BkU7vtMIEPsll1UX/JxrNj4G+DJaGQ/+k=";
23 };
24
25 propagatedBuildInputs = [ google-api-core google-cloud-core proto-plus ];
26
27 checkInputs = [
28 django
29 flask
30 google-cloud-testutils
31 mock
32 pytestCheckHook
33 pytest-asyncio
34 ];
35
36 disabledTests = [
37 # requires credentials
38 "test_write_log_entries"
39 ];
40
41 preCheck = ''
42 # prevent google directory from shadowing google imports
43 rm -r google
44 # requires credentials
45 rm tests/system/test_system.py tests/unit/test__gapic.py
46 '';
47
48 pythonImortsCheck = [
49 "google.cloud.logging"
50 "google.cloud.logging_v2"
51 ];
52
53 meta = with lib; {
54 description = "Stackdriver Logging API client library";
55 homepage = "https://github.com/googleapis/python-logging";
56 license = licenses.asl20;
57 maintainers = with maintainers; [ SuperSandro2000 ];
58 };
59}