Merge pull request #174718 from mweinelt/sentry-sdk
This commit is contained in:
commit
60ddbcfc9e
@ -1,43 +1,47 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, stdenv
|
, stdenv
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pythonOlder
|
||||||
|
|
||||||
|
# runtime
|
||||||
|
, certifi
|
||||||
|
, urllib3
|
||||||
|
|
||||||
|
# optionals
|
||||||
, aiohttp
|
, aiohttp
|
||||||
, asttokens
|
, apache-beam
|
||||||
, blinker
|
, blinker
|
||||||
, botocore
|
, botocore
|
||||||
, bottle
|
, bottle
|
||||||
, buildPythonPackage
|
|
||||||
, celery
|
, celery
|
||||||
, certifi
|
|
||||||
, chalice
|
, chalice
|
||||||
, django
|
, django
|
||||||
, executing
|
|
||||||
, fakeredis
|
|
||||||
, falcon
|
, falcon
|
||||||
, fetchFromGitHub
|
, flask
|
||||||
, flask_login
|
, flask_login
|
||||||
, gevent
|
|
||||||
, httpx
|
, httpx
|
||||||
, iana-etc
|
|
||||||
, isPy3k
|
|
||||||
, jsonschema
|
|
||||||
, libredirect
|
|
||||||
, pure-eval
|
, pure-eval
|
||||||
, pyramid
|
, pyramid
|
||||||
, pyspark
|
, pyspark
|
||||||
, pytest-django
|
|
||||||
, pytest-forked
|
|
||||||
, pytest-localserver
|
|
||||||
, pytestCheckHook
|
|
||||||
, pythonOlder
|
|
||||||
, rq
|
, rq
|
||||||
, sanic
|
, sanic
|
||||||
, sanic-testing
|
|
||||||
, sqlalchemy
|
, sqlalchemy
|
||||||
, tornado
|
, tornado
|
||||||
, trytond
|
, trytond
|
||||||
, urllib3
|
|
||||||
, werkzeug
|
, werkzeug
|
||||||
, multidict
|
|
||||||
|
# tests
|
||||||
|
, asttokens
|
||||||
|
, executing
|
||||||
|
, gevent
|
||||||
|
, jsonschema
|
||||||
|
, mock
|
||||||
|
, pyrsistent
|
||||||
|
, pytest-forked
|
||||||
|
, pytest-localserver
|
||||||
|
, pytest-watch
|
||||||
|
, pytestCheckHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@ -59,37 +63,73 @@ buildPythonPackage rec {
|
|||||||
urllib3
|
urllib3
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [
|
passthru.optional-dependencies = {
|
||||||
|
aiohttp = [
|
||||||
aiohttp
|
aiohttp
|
||||||
asttokens
|
];
|
||||||
blinker
|
beam = [
|
||||||
botocore
|
apache-beam
|
||||||
|
];
|
||||||
|
bottle = [
|
||||||
bottle
|
bottle
|
||||||
|
];
|
||||||
|
celery = [
|
||||||
celery
|
celery
|
||||||
|
];
|
||||||
|
chalice = [
|
||||||
chalice
|
chalice
|
||||||
|
];
|
||||||
|
django = [
|
||||||
django
|
django
|
||||||
executing
|
];
|
||||||
fakeredis
|
falcon = [
|
||||||
falcon
|
falcon
|
||||||
flask_login
|
];
|
||||||
gevent
|
flask = [
|
||||||
|
flask
|
||||||
|
blinker
|
||||||
|
];
|
||||||
|
httpx = [
|
||||||
httpx
|
httpx
|
||||||
jsonschema
|
];
|
||||||
pure-eval
|
pyspark = [
|
||||||
pyramid
|
|
||||||
pyspark
|
pyspark
|
||||||
pytest-django
|
];
|
||||||
|
pure_eval = [
|
||||||
|
asttokens
|
||||||
|
executing
|
||||||
|
pure-eval
|
||||||
|
];
|
||||||
|
quart = [
|
||||||
|
# quart missing
|
||||||
|
blinker
|
||||||
|
];
|
||||||
|
rq = [
|
||||||
|
rq
|
||||||
|
];
|
||||||
|
sanic = [
|
||||||
|
sanic
|
||||||
|
];
|
||||||
|
sqlalchemy = [
|
||||||
|
sqlalchemy
|
||||||
|
];
|
||||||
|
tornado = [
|
||||||
|
tornado
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
asttokens
|
||||||
|
executing
|
||||||
|
gevent
|
||||||
|
jsonschema
|
||||||
|
mock
|
||||||
|
pure-eval
|
||||||
|
pyrsistent
|
||||||
pytest-forked
|
pytest-forked
|
||||||
pytest-localserver
|
pytest-localserver
|
||||||
|
pytest-watch
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
rq
|
|
||||||
sanic
|
|
||||||
sanic-testing
|
|
||||||
sqlalchemy
|
|
||||||
tornado
|
|
||||||
trytond
|
|
||||||
werkzeug
|
|
||||||
multidict
|
|
||||||
];
|
];
|
||||||
|
|
||||||
doCheck = !stdenv.isDarwin;
|
doCheck = !stdenv.isDarwin;
|
||||||
@ -97,53 +137,15 @@ buildPythonPackage rec {
|
|||||||
disabledTests = [
|
disabledTests = [
|
||||||
# Issue with the asseration
|
# Issue with the asseration
|
||||||
"test_auto_enabling_integrations_catches_import_error"
|
"test_auto_enabling_integrations_catches_import_error"
|
||||||
# Output mismatch in sqlalchemy test
|
|
||||||
"test_too_large_event_truncated"
|
|
||||||
# Failing falcon tests
|
|
||||||
"test_has_context"
|
|
||||||
"uri_template-"
|
|
||||||
"path-"
|
|
||||||
"test_falcon_large_json_request"
|
|
||||||
"test_falcon_empty_json_request"
|
|
||||||
"test_falcon_raw_data_request"
|
|
||||||
# Failing spark tests
|
|
||||||
"test_set_app_properties"
|
|
||||||
"test_start_sentry_listener"
|
|
||||||
# Failing threading test
|
|
||||||
"test_circular_references"
|
|
||||||
# Failing wsgi tests
|
|
||||||
"test_session_mode_defaults_to_request_mode_in_wsgi_handler"
|
|
||||||
"test_auto_session_tracking_with_aggregates"
|
|
||||||
# Network requests to public web
|
|
||||||
"test_crumb_capture"
|
|
||||||
# TypeError: cannot unpack non-iterable TestResponse object
|
|
||||||
"test_rpc_error_page"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
disabledTestPaths = [
|
disabledTestPaths = [
|
||||||
# Some tests are failing (network access, assertion errors)
|
# Varius integration tests fail every once in a while when we
|
||||||
"tests/integrations/aiohttp/"
|
# upgrade depencies, so don't bother testing them.
|
||||||
"tests/integrations/gcp/"
|
"tests/integrations/"
|
||||||
"tests/integrations/httpx/"
|
] ++ lib.optionals (stdenv.buildPlatform != "x86_64-linux") [
|
||||||
"tests/integrations/stdlib/test_httplib.py"
|
|
||||||
# Tests are blocking
|
|
||||||
"tests/integrations/celery/"
|
|
||||||
# pytest-chalice is not available in nixpkgs yet
|
|
||||||
"tests/integrations/chalice/"
|
|
||||||
# broken since rq-1.10.1: https://github.com/getsentry/sentry-python/issues/1274
|
|
||||||
"tests/integrations/rq/"
|
|
||||||
# broken since pytest 7.0.1; AssertionError: previous item was not torn down properly
|
|
||||||
"tests/utils/test_contextvars.py"
|
|
||||||
# broken since Flask and Werkzeug update to 2.1.0 (different error messages)
|
|
||||||
"tests/integrations/flask/test_flask.py"
|
|
||||||
"tests/integrations/bottle/test_bottle.py"
|
|
||||||
"tests/integrations/django/test_basic.py"
|
|
||||||
"tests/integrations/pyramid/test_pyramid.py"
|
|
||||||
]
|
|
||||||
# test crashes on aarch64
|
# test crashes on aarch64
|
||||||
++ lib.optionals (stdenv.buildPlatform != "x86_64-linux") [
|
|
||||||
"tests/test_transport.py"
|
"tests/test_transport.py"
|
||||||
"tests/integrations/threading/test_threading.py"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
|
Loading…
Reference in New Issue
Block a user