1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
|
{ lib
, stdenv
, aiohttp
, asttokens
, blinker
, botocore
, bottle
, buildPythonPackage
, celery
, certifi
, chalice
, django
, executing
, fakeredis
, falcon
, fetchFromGitHub
, flask_login
, gevent
, httpx
, iana-etc
, isPy3k
, jsonschema
, libredirect
, pure-eval
, pyramid
, pyspark
, pytest-django
, pytest-forked
, pytest-localserver
, pytestCheckHook
, pythonOlder
, rq
, sanic
, sanic-testing
, sqlalchemy
, tornado
, trytond
, urllib3
, werkzeug
, multidict
}:
buildPythonPackage rec {
pname = "sentry-sdk";
version = "1.5.12";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "getsentry";
repo = "sentry-python";
rev = version;
hash = "sha256-8M0FWfvaGp74Fb+qJlhyiJPUVHN2ZdEleZf27d+bftE=";
};
propagatedBuildInputs = [
certifi
urllib3
];
checkInputs = [
aiohttp
asttokens
blinker
botocore
bottle
celery
chalice
django
executing
fakeredis
falcon
flask_login
gevent
httpx
jsonschema
pure-eval
pyramid
pyspark
pytest-django
pytest-forked
pytest-localserver
pytestCheckHook
rq
sanic
sanic-testing
sqlalchemy
tornado
trytond
werkzeug
multidict
];
doCheck = !stdenv.isDarwin;
disabledTests = [
# Issue with the asseration
"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 = [
# Some tests are failing (network access, assertion errors)
"tests/integrations/aiohttp/"
"tests/integrations/gcp/"
"tests/integrations/httpx/"
"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
++ lib.optionals (stdenv.buildPlatform != "x86_64-linux") [
"tests/test_transport.py"
"tests/integrations/threading/test_threading.py"
];
pythonImportsCheck = [
"sentry_sdk"
];
meta = with lib; {
description = "Python SDK for Sentry.io";
homepage = "https://github.com/getsentry/sentry-python";
license = licenses.bsd2;
maintainers = with maintainers; [ fab gebner ];
};
}
|