depot/third_party/nixpkgs/pkgs/development/python-modules/google-cloud-logging/default.nix
Default email 841d9c7fc1 Project import generated by Copybara.
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
2021-06-29 00:13:55 +01:00

59 lines
1.2 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, django
, flask
, google-api-core
, google-cloud-core
, google-cloud-testutils
, mock
, proto-plus
, pytestCheckHook
, pytest-asyncio
, webapp2
}:
buildPythonPackage rec {
pname = "google-cloud-logging";
version = "2.5.0";
src = fetchPypi {
inherit pname version;
sha256 = "ab9d6ee1156cabe8c2483ca5a67bdf3a8582c596dd4e498a59781b6670b085f0";
};
propagatedBuildInputs = [ google-api-core google-cloud-core proto-plus ];
checkInputs = [
django
flask
google-cloud-testutils
mock
pytestCheckHook
pytest-asyncio
];
disabledTests = [
# requires credentials
"test_write_log_entries"
];
preCheck = ''
# prevent google directory from shadowing google imports
rm -r google
# requires credentials
rm tests/system/test_system.py tests/unit/test__gapic.py
'';
pythonImortsCheck = [
"google.cloud.logging"
"google.cloud.logging_v2"
];
meta = with lib; {
description = "Stackdriver Logging API client library";
homepage = "https://github.com/googleapis/python-logging";
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}