Unverified Commit 9e2bd69c authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

python313Packages.sentry-sdk: 1.45.1 -> 2.25.0 (#400392)

parents 3990b111 a9e79b0f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -278,7 +278,7 @@ let
            pyyaml
            requests-oauthlib
            scim2-filter-parser
            sentry-sdk_2
            sentry-sdk
            service-identity
            setproctitle
            structlog
+0 −12
Original line number Diff line number Diff line
@@ -25,16 +25,6 @@ let
        };
      });

      geoip2 = super.geoip2.overridePythonAttrs rec {
        version = "5.0.1";

        src = fetchPypi {
          pname = "geoip2";
          inherit version;
          hash = "sha256-kK+LbTaH877yUfJwitAXsw1ifRFEwAQOq8TJAXqAfYY=";
        };
      };

      stripe = super.stripe.overridePythonAttrs rec {
        version = "7.9.0";

@@ -46,8 +36,6 @@ let
      };

      pretix-plugin-build = self.callPackage ./plugin-build.nix { };

      sentry-sdk = super.sentry-sdk_2;
    };
  };

+0 −1
Original line number Diff line number Diff line
@@ -17,7 +17,6 @@ let
  python = python3.override {
    packageOverrides = final: prev: {
      django = prev.django_5;
      sentry-sdk = prev.sentry-sdk_2;
      djangorestframework = prev.djangorestframework.overridePythonAttrs (old: {
        # https://github.com/encode/django-rest-framework/discussions/9342
        disabledTests = (old.disabledTests or [ ]) ++ [ "test_invalid_inputs" ];
+1 −0
Original line number Diff line number Diff line
@@ -77,6 +77,7 @@ buildPythonPackage rec {
  '';

  meta = {
    broken = true; # ModuleNotFoundError: No module named 'proton.vpn.local_agent'
    description = "Provides the necessary functionality for other ProtonVPN components to interact with NetworkManager";
    homepage = "https://github.com/ProtonVPN/python-proton-vpn-network-manager";
    license = lib.licenses.gpl3Only;
+0 −135
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  aiohttp,
  apache-beam,
  asttokens,
  blinker,
  bottle,
  buildPythonPackage,
  celery,
  certifi,
  chalice,
  django,
  executing,
  falcon,
  fetchFromGitHub,
  flask,
  gevent,
  httpx,
  jsonschema,
  mock,
  pure-eval,
  pyrsistent,
  pyspark,
  pysocks,
  pytest-forked,
  pytest-localserver,
  pytest-watch,
  pytestCheckHook,
  pythonOlder,
  quart,
  rq,
  sanic,
  setuptools,
  sqlalchemy,
  tornado,
  urllib3,
}:

buildPythonPackage rec {
  pname = "sentry-sdk";
  version = "1.45.1";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "getsentry";
    repo = "sentry-python";
    rev = "refs/tags/${version}";
    hash = "sha256-ZNJsxbQcW5g/bKqN18z+BspKyI34+vkj6vQ9akE1Ook=";
  };

  build-system = [ setuptools ];

  dependencies = [
    certifi
    urllib3
  ];

  optional-dependencies = {
    aiohttp = [ aiohttp ];
    beam = [ apache-beam ];
    bottle = [ bottle ];
    celery = [ celery ];
    chalice = [ chalice ];
    django = [ django ];
    falcon = [ falcon ];
    flask = [
      flask
      blinker
    ];
    httpx = [ httpx ];
    pyspark = [ pyspark ];
    pure_eval = [
      asttokens
      executing
      pure-eval
    ];
    quart = [
      quart
      blinker
    ];
    rq = [ rq ];
    sanic = [ sanic ];
    sqlalchemy = [ sqlalchemy ];
    tornado = [ tornado ];
  };

  nativeCheckInputs = [
    asttokens
    executing
    gevent
    jsonschema
    mock
    pure-eval
    pyrsistent
    pysocks
    pytest-forked
    pytest-localserver
    pytest-watch
    pytestCheckHook
  ];

  doCheck = pythonOlder "3.13" && !stdenv.hostPlatform.isDarwin;

  disabledTests = [
    # Issue with the asseration
    "test_auto_enabling_integrations_catches_import_error"
    "test_default_release"
  ];

  disabledTestPaths =
    [
      # Various integration tests fail every once in a while when we
      # upgrade dependencies, so don't bother testing them.
      "tests/integrations/"
    ]
    ++ lib.optionals (stdenv.buildPlatform != "x86_64-linux") [
      # test crashes on aarch64
      "tests/test_transport.py"
    ];

  pythonImportsCheck = [ "sentry_sdk" ];

  meta = with lib; {
    description = "Python SDK for Sentry.io";
    homepage = "https://github.com/getsentry/sentry-python";
    changelog = "https://github.com/getsentry/sentry-python/blob/${version}/CHANGELOG.md";
    license = licenses.bsd2;
    maintainers = with maintainers; [
      fab
    ];
  };
}
Loading