Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.6 kB · 78 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879{ lib, buildPythonPackage, fetchFromGitHub,
# build-system setuptools,
# dependencies google-api-core, google-cloud-logging, proto-plus, protobuf,
# testing google-cloud-testutils, mock, pytest-asyncio, pytestCheckHook,}:
buildPythonPackage rec { pname = "google-cloud-error-reporting"; version = "1.12.0"; pyproject = true;
src = fetchFromGitHub { owner = "googleapis"; repo = "python-error-reporting"; tag = "v${version}"; hash = "sha256-V97V3WbsChc93nqhCOh34O/hn8fqLMwR4/DcHmc9vdU="; };
build-system = [ setuptools ];
pythonRelaxDeps = [ "protobuf" ];
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 = { description = "Stackdriver Error Reporting API client library"; homepage = "https://github.com/googleapis/python-error-reporting"; changelog = "https://github.com/googleapis/python-error-reporting/blob/${src.tag}/CHANGELOG.md"; license = lib.licenses.asl20; maintainers = [ lib.maintainers.sarahec ]; };}