nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 66 lines 1.7 kB view raw
1{ 2 lib, 3 blinker, 4 buildPythonPackage, 5 fetchFromGitHub, 6 flask, 7 setuptools, 8 webob, 9 pytestCheckHook, 10}: 11 12buildPythonPackage rec { 13 pname = "bugsnag"; 14 version = "4.8.1"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "bugsnag"; 19 repo = "bugsnag-python"; 20 tag = "v${version}"; 21 hash = "sha256-WXBdlgUoWdptv1weJf82qyH8TTqNCC1rYFEa972TqDY="; 22 }; 23 24 postPatch = '' 25 substituteInPlace tox.ini --replace-fail \ 26 "--cov=bugsnag --cov-report html --cov-append --cov-report term" "" 27 ''; 28 29 build-system = [ setuptools ]; 30 31 dependencies = [ webob ]; 32 33 optional-dependencies = { 34 flask = [ 35 blinker 36 flask 37 ]; 38 }; 39 40 pythonImportsCheck = [ "bugsnag" ]; 41 42 nativeCheckInputs = [ pytestCheckHook ]; 43 44 disabledTestPaths = [ 45 # Extra dependencies 46 "tests/integrations" 47 # Flaky due to timeout 48 "tests/test_client.py::ClientTest::test_flush_waits_for_outstanding_events_before_returning" 49 # Flaky due to timeout 50 "tests/test_client.py::ClientTest::test_flush_waits_for_outstanding_sessions_before_returning" 51 # Flaky failure due to AssertionError: assert 0 == 3 52 "tests/test_client.py::ClientTest::test_aws_lambda_handler_decorator_warns_of_potential_timeout" 53 # Flaky failure due to AssertionError: assert 0 == 1 54 "tests/test_client.py::ClientTest::test_exception_hook_does_not_leave_a_breadcrumb_if_errors_are_disabled" 55 ]; 56 57 __darwinAllowLocalNetworking = true; 58 59 meta = { 60 description = "Automatic error monitoring for Python applications"; 61 homepage = "https://github.com/bugsnag/bugsnag-python"; 62 changelog = "https://github.com/bugsnag/bugsnag-python/blob/v${version}/CHANGELOG.md"; 63 license = lib.licenses.mit; 64 maintainers = [ ]; 65 }; 66}