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