Files
nixpkgs/pkgs/development/python-modules/bugsnag/default.nix
T
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

67 lines
1.7 KiB
Nix

{
lib,
blinker,
buildPythonPackage,
fetchFromGitHub,
flask,
setuptools,
webob,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "bugsnag";
version = "4.8.0";
pyproject = true;
src = fetchFromGitHub {
owner = "bugsnag";
repo = "bugsnag-python";
tag = "v${version}";
hash = "sha256-aN7/MpTdsRsAINPXOmSau4pG1+F8gmvjlx5czKpx7H8=";
};
postPatch = ''
substituteInPlace tox.ini --replace-fail \
"--cov=bugsnag --cov-report html --cov-append --cov-report term" ""
'';
build-system = [ setuptools ];
dependencies = [ webob ];
optional-dependencies = {
flask = [
blinker
flask
];
};
pythonImportsCheck = [ "bugsnag" ];
nativeCheckInputs = [ pytestCheckHook ];
disabledTestPaths = [
# Extra dependencies
"tests/integrations"
# Flaky due to timeout
"tests/test_client.py::ClientTest::test_flush_waits_for_outstanding_events_before_returning"
# Flaky due to timeout
"tests/test_client.py::ClientTest::test_flush_waits_for_outstanding_sessions_before_returning"
# Flaky failure due to AssertionError: assert 0 == 3
"tests/test_client.py::ClientTest::test_aws_lambda_handler_decorator_warns_of_potential_timeout"
# Flaky failure due to AssertionError: assert 0 == 1
"tests/test_client.py::ClientTest::test_exception_hook_does_not_leave_a_breadcrumb_if_errors_are_disabled"
];
__darwinAllowLocalNetworking = true;
meta = {
description = "Automatic error monitoring for Python applications";
homepage = "https://github.com/bugsnag/bugsnag-python";
changelog = "https://github.com/bugsnag/bugsnag-python/blob/v${version}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = [ ];
};
}