2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2021-01-05 15:06:29 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, django
|
|
|
|
, flask
|
2021-01-06 09:46:48 +00:00
|
|
|
, google-api-core
|
|
|
|
, google-cloud-core
|
|
|
|
, google-cloud-testutils
|
2021-01-05 15:06:29 +00:00
|
|
|
, mock
|
|
|
|
, proto-plus
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-asyncio
|
|
|
|
, webapp2
|
|
|
|
}:
|
2018-11-02 19:30:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-logging";
|
2021-02-02 21:45:07 +00:00
|
|
|
version = "2.2.0";
|
2018-11-02 19:30:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-02 21:45:07 +00:00
|
|
|
sha256 = "8932ac382eee6af85cd08400a77586dd3139fbf40b61db757c4c492490899741";
|
2018-11-02 19:30:52 +00:00
|
|
|
};
|
|
|
|
|
2021-01-06 09:46:48 +00:00
|
|
|
propagatedBuildInputs = [ google-api-core google-cloud-core proto-plus ];
|
2020-11-03 01:16:31 +00:00
|
|
|
|
2021-01-05 15:06:29 +00:00
|
|
|
checkInputs = [
|
|
|
|
django
|
|
|
|
flask
|
2021-01-06 09:46:48 +00:00
|
|
|
google-cloud-testutils
|
2021-01-05 15:06:29 +00:00
|
|
|
mock
|
|
|
|
pytestCheckHook
|
|
|
|
pytest-asyncio
|
|
|
|
];
|
2018-11-02 19:30:52 +00:00
|
|
|
|
2021-01-05 15:06:29 +00:00
|
|
|
disabledTests = [
|
|
|
|
# requires credentials
|
|
|
|
"test_write_log_entries"
|
|
|
|
];
|
2020-11-03 01:16:31 +00:00
|
|
|
|
|
|
|
preCheck = ''
|
2021-01-05 15:06:29 +00:00
|
|
|
# prevent google directory from shadowing google imports
|
2020-03-18 21:34:50 +00:00
|
|
|
rm -r google
|
2021-01-05 15:06:29 +00:00
|
|
|
# requires credentials
|
|
|
|
rm tests/system/test_system.py tests/unit/test__gapic.py
|
2018-11-02 19:30:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-05 15:06:29 +00:00
|
|
|
pythonImortsCheck = [
|
|
|
|
"google.cloud.logging"
|
|
|
|
"google.cloud.logging_v2"
|
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-11-02 19:30:52 +00:00
|
|
|
description = "Stackdriver Logging API client library";
|
2020-11-03 01:16:31 +00:00
|
|
|
homepage = "https://github.com/googleapis/python-logging";
|
2018-11-02 19:30:52 +00:00
|
|
|
license = licenses.asl20;
|
2021-01-05 15:06:29 +00:00
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
2018-11-02 19:30:52 +00:00
|
|
|
};
|
|
|
|
}
|