Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / google-cloud-logging / default.nix
blob83842597d8771ae761723464e84e341c0caa0db3
1 { lib
2 , buildPythonPackage
3 , django
4 , fetchPypi
5 , flask
6 , google-api-core
7 , google-cloud-appengine-logging
8 , google-cloud-audit-log
9 , google-cloud-core
10 , google-cloud-testutils
11 , grpc-google-iam-v1
12 , mock
13 , pandas
14 , proto-plus
15 , protobuf
16 , pytest-asyncio
17 , pytestCheckHook
18 , pythonOlder
19 , rich
22 buildPythonPackage rec {
23   pname = "google-cloud-logging";
24   version = "3.8.0";
25   format = "setuptools";
27   disabled = pythonOlder "3.7";
29   src = fetchPypi {
30     inherit pname version;
31     hash = "sha256-/dkW5ZqEqowC6BSNf907O2I8V7DB/3H0MpfOjlD8Hqs=";
32   };
34   propagatedBuildInputs = [
35     google-api-core
36     google-cloud-appengine-logging
37     google-cloud-audit-log
38     google-cloud-core
39     grpc-google-iam-v1
40     proto-plus
41     protobuf
42   ] ++ google-api-core.optional-dependencies.grpc;
44   nativeCheckInputs = [
45     django
46     flask
47     google-cloud-testutils
48     mock
49     pandas
50     pytestCheckHook
51     pytest-asyncio
52     rich
53   ];
55   disabledTests = [
56     # requires credentials
57     "test_write_log_entries"
58   ];
60   preCheck = ''
61     # prevent google directory from shadowing google imports
62     rm -r google
63   '';
65   disabledTestPaths = [
66     # Tests require credentials
67     "tests/system/test_system.py"
68     "tests/unit/test__gapic.py"
69     # Exclude performance tests
70     "tests/performance/test_performance.py"
71   ];
73   pythonImportsCheck = [
74     "google.cloud.logging"
75     "google.cloud.logging_v2"
76   ];
78   meta = with lib; {
79     description = "Stackdriver Logging API client library";
80     homepage = "https://github.com/googleapis/python-logging";
81     changelog = "https://github.com/googleapis/python-logging/blob/v${version}/CHANGELOG.md";
82     license = licenses.asl20;
83     maintainers = with maintainers; [ ];
84   };