2020-11-03 01:16:31 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, pytestCheckHook, pythonOlder, django
|
|
|
|
, flask, google_api_core, google_cloud_core, google_cloud_testutils, mock
|
|
|
|
, webapp2 }:
|
2018-11-02 19:30:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-logging";
|
2020-08-16 18:31:01 +01:00
|
|
|
version = "1.15.1";
|
2018-11-02 19:30:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-08-16 18:31:01 +01:00
|
|
|
sha256 = "cb0d4af9d684eb8a416f14c39d9fa6314be3adf41db2dd8ee8e30db9e8853d90";
|
2018-11-02 19:30:52 +00:00
|
|
|
};
|
|
|
|
|
2020-11-03 01:16:31 +00:00
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
|
|
|
|
checkInputs =
|
|
|
|
[ django flask google_cloud_testutils mock pytestCheckHook webapp2 ];
|
2018-11-02 19:30:52 +00:00
|
|
|
propagatedBuildInputs = [ google_api_core google_cloud_core ];
|
|
|
|
|
2020-11-03 01:16:31 +00:00
|
|
|
# api_url test broken, fix not yet released
|
|
|
|
# https://github.com/googleapis/python-logging/pull/66
|
|
|
|
disabledTests =
|
|
|
|
[ "test_build_api_url_w_custom_endpoint" "test_write_log_entries" ];
|
|
|
|
|
|
|
|
# prevent google directory from shadowing google imports
|
|
|
|
# remove system integration tests
|
|
|
|
preCheck = ''
|
2020-03-18 21:34:50 +00:00
|
|
|
rm -r google
|
2020-11-03 01:16:31 +00:00
|
|
|
rm tests/system/test_system.py
|
2018-11-02 19:30:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|