mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-24 13:53:24 +00:00
c6acae475d
Changelog: https://github.com/googleapis/python-error-reporting/blob/v1.11.1/CHANGELOG.md
72 lines
1.5 KiB
Nix
72 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
google-api-core,
|
|
google-cloud-logging,
|
|
google-cloud-testutils,
|
|
mock,
|
|
proto-plus,
|
|
protobuf,
|
|
pytest-asyncio,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "google-cloud-error-reporting";
|
|
version = "1.11.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
pname = "google_cloud_error_reporting";
|
|
inherit version;
|
|
hash = "sha256-1ir8o3jwzmfi7E8QPTn3E6RGtTOL9KM05NRaMRYzh5A=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
google-api-core
|
|
google-cloud-logging
|
|
proto-plus
|
|
protobuf
|
|
] ++ google-api-core.optional-dependencies.grpc;
|
|
|
|
nativeCheckInputs = [
|
|
google-cloud-testutils
|
|
mock
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [
|
|
# Tests require credentials
|
|
"test_report_error_event"
|
|
"test_report_exception"
|
|
# Import is already tested
|
|
"test_namespace_package_compat"
|
|
];
|
|
|
|
preCheck = ''
|
|
# prevent google directory from shadowing google imports
|
|
rm -r google
|
|
'';
|
|
|
|
pythonImportsCheck = [
|
|
"google.cloud.error_reporting"
|
|
"google.cloud.errorreporting_v1beta1"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Stackdriver Error Reporting API client library";
|
|
homepage = "https://github.com/googleapis/python-error-reporting";
|
|
changelog = "https://github.com/googleapis/python-error-reporting/blob/v${version}/CHANGELOG.md";
|
|
license = licenses.asl20;
|
|
maintainers = [ ];
|
|
};
|
|
}
|