diff options
Diffstat (limited to 'pkgs/development/python-modules/sentry-sdk/default.nix')
| -rw-r--r-- | pkgs/development/python-modules/sentry-sdk/default.nix | 46 |
1 files changed, 33 insertions, 13 deletions
diff --git a/pkgs/development/python-modules/sentry-sdk/default.nix b/pkgs/development/python-modules/sentry-sdk/default.nix index 820a809ac8d4..656079d0d43f 100644 --- a/pkgs/development/python-modules/sentry-sdk/default.nix +++ b/pkgs/development/python-modules/sentry-sdk/default.nix @@ -13,31 +13,32 @@ # optional-dependencies aiohttp, anthropic, - asyncpg, apache-beam, + asttokens, + asyncpg, + blinker, bottle, celery, celery-redbeat, chalice, clickhouse-driver, django, + executing, falcon, fastapi, flask, - blinker, - markupsafe, grpcio, - protobuf, + httpcore, httpx, huey, huggingface-hub, langchain, + litestar, loguru, + markupsafe, openai, - tiktoken, + protobuf, pure-eval, - executing, - asttokens, pymongo, pyspark, quart, @@ -45,10 +46,11 @@ sanic, sqlalchemy, starlette, + tiktoken, tornado, # checks - ipdb, + brotli, jsonschema, pip, pyrsistent, @@ -60,22 +62,23 @@ pytest-xdist, pytest-watch, responses, + stdenv, }: buildPythonPackage rec { pname = "sentry-sdk"; - version = "2.15.0"; + version = "2.25.0"; pyproject = true; src = fetchFromGitHub { owner = "getsentry"; repo = "sentry-python"; tag = version; - hash = "sha256-jrApaDZ+R/bMOqOuQZguP9ySt6nKJeJYNpJTNTxq3no="; + hash = "sha256-HQxZczpfTURbkLaWjOqnYB86UuFHD71kE7HPPjlkUqc="; }; postPatch = '' - sed -i "/addopts =/d" pytest.ini + sed -i "/addopts =/d" pyproject.toml ''; build-system = [ @@ -110,15 +113,19 @@ buildPythonPackage rec { grpcio protobuf ]; + http2 = [ httpcore ] ++ httpcore.optional-dependencies.http2; httpx = [ httpx ]; huey = [ huey ]; huggingface-hub = [ huggingface-hub ]; langchain = [ langchain ]; + # TODO: launchdarkly + litestar = [ litestar ]; loguru = [ loguru ]; openai = [ openai tiktoken ]; + # TODO: openfeature # TODO: opentelemetry # TODO: opentelemetry-experimental pure_eval = [ @@ -137,11 +144,13 @@ buildPythonPackage rec { sqlalchemy = [ sqlalchemy ]; starlette = [ starlette ]; # TODO: starlite + # TODO: statsig tornado = [ tornado ]; + # TODO: unleash }; nativeCheckInputs = [ - ipdb + brotli pyrsistent responses pysocks @@ -155,10 +164,15 @@ buildPythonPackage rec { pytest-xdist pytest-watch pytestCheckHook - ]; + ] ++ optional-dependencies.http2; __darwinAllowLocalNetworking = true; + disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [ + # darwin: 'profiler should not be running' + "tests/profiler/test_continuous_profiler.py" + ]; + disabledTests = [ # depends on git revision "test_default_release" @@ -191,6 +205,12 @@ buildPythonPackage rec { # timing sensitive "test_profile_captured" "test_continuous_profiler_manual_start_and_stop" + # assert ('socks' in "<class 'httpcore.connectionpool'>") == True + "test_socks_proxy" + # requires socksio to mock, but that crashes pytest-forked + "test_http_timeout" + # KeyError: 'sentry.release' + "test_logs_attributes" ]; pythonImportsCheck = [ "sentry_sdk" ]; |
