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
|
2024-01-02 11:29:13 +00:00
|
|
|
, setuptools
|
2021-01-09 10:05:03 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-logging";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "3.9.0";
|
|
|
|
pyproject = true;
|
2022-06-16 17:23:12 +00:00
|
|
|
|
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;
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-TeyxsL7UoOPA5Yo3ZkbmAC1r58rQOeNGaCLoZlBy6jM=";
|
2021-01-09 10:05:03 +00:00
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
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
|
|
|
];
|
|
|
|
|
|
|
|
preCheck = ''
|
2024-01-02 11:29:13 +00:00
|
|
|
# Prevent google directory from shadowing google imports
|
2021-01-09 10:05:03 +00:00
|
|
|
rm -r google
|
|
|
|
'';
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
disabledTests = [
|
|
|
|
# Test requires credentials
|
|
|
|
"test_write_log_entries"
|
|
|
|
# No need for a second import check
|
|
|
|
"test_namespace_package_compat"
|
|
|
|
];
|
|
|
|
|
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;
|
2023-08-04 22:07:22 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2021-01-09 10:05:03 +00:00
|
|
|
};
|
|
|
|
}
|