2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2021-01-09 10:05:03 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, django
|
2023-01-11 07:51:40 +00:00
|
|
|
, fetchPypi
|
2021-01-09 10:05:03 +00:00
|
|
|
, flask
|
|
|
|
, google-api-core
|
2021-08-27 14:25:00 +00:00
|
|
|
, google-cloud-appengine-logging
|
|
|
|
, google-cloud-audit-log
|
2021-01-09 10:05:03 +00:00
|
|
|
, google-cloud-core
|
|
|
|
, google-cloud-testutils
|
2023-01-11 07:51:40 +00:00
|
|
|
, grpc-google-iam-v1
|
2021-01-09 10:05:03 +00:00
|
|
|
, mock
|
2022-09-09 14:08:57 +00:00
|
|
|
, pandas
|
2021-01-09 10:05:03 +00:00
|
|
|
, proto-plus
|
2023-01-11 07:51:40 +00:00
|
|
|
, protobuf
|
2021-01-09 10:05:03 +00:00
|
|
|
, pytest-asyncio
|
2023-01-11 07:51:40 +00:00
|
|
|
, pytestCheckHook
|
2022-06-16 17:23:12 +00:00
|
|
|
, pythonOlder
|
2022-09-09 14:08:57 +00:00
|
|
|
, rich
|
2021-01-09 10:05:03 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-logging";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "3.5.0";
|
2022-06-16 17:23:12 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2022-10-06 18:32:54 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2021-01-09 10:05:03 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-02-02 18:25:31 +00:00
|
|
|
hash = "sha256-8RVEoh6jVW9w66x7wzj/qKGXkTg07N2IU9F2uHCCOqo=";
|
2021-01-09 10:05:03 +00:00
|
|
|
};
|
|
|
|
|
2021-08-27 14:25:00 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
google-api-core
|
|
|
|
google-cloud-appengine-logging
|
|
|
|
google-cloud-audit-log
|
|
|
|
google-cloud-core
|
2023-01-11 07:51:40 +00:00
|
|
|
grpc-google-iam-v1
|
2021-08-27 14:25:00 +00:00
|
|
|
proto-plus
|
2023-01-11 07:51:40 +00:00
|
|
|
protobuf
|
|
|
|
] ++ google-api-core.optional-dependencies.grpc;
|
2021-01-09 10:05:03 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-01-09 10:05:03 +00:00
|
|
|
django
|
|
|
|
flask
|
|
|
|
google-cloud-testutils
|
|
|
|
mock
|
2022-09-09 14:08:57 +00:00
|
|
|
pandas
|
2021-01-09 10:05:03 +00:00
|
|
|
pytestCheckHook
|
|
|
|
pytest-asyncio
|
2022-09-09 14:08:57 +00:00
|
|
|
rich
|
2021-01-09 10:05:03 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# requires credentials
|
|
|
|
"test_write_log_entries"
|
|
|
|
];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
# prevent google directory from shadowing google imports
|
|
|
|
rm -r google
|
|
|
|
'';
|
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# Tests require credentials
|
|
|
|
"tests/system/test_system.py"
|
|
|
|
"tests/unit/test__gapic.py"
|
|
|
|
# Exclude performance tests
|
|
|
|
"tests/performance/test_performance.py"
|
|
|
|
];
|
|
|
|
|
2022-01-22 01:22:15 +00:00
|
|
|
pythonImportsCheck = [
|
2021-01-09 10:05:03 +00:00
|
|
|
"google.cloud.logging"
|
|
|
|
"google.cloud.logging_v2"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-01-09 10:05:03 +00:00
|
|
|
description = "Stackdriver Logging API client library";
|
|
|
|
homepage = "https://github.com/googleapis/python-logging";
|
2022-12-17 10:02:37 +00:00
|
|
|
changelog = "https://github.com/googleapis/python-logging/blob/v${version}/CHANGELOG.md";
|
2021-01-09 10:05:03 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
|
|
|
};
|
|
|
|
}
|