2024-04-21 15:54:59 +00:00
|
|
|
{
|
|
|
|
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,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sentry-sdk";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "1.45.0";
|
2024-01-13 08:15:51 +00:00
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2021-12-19 01:06:50 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "getsentry";
|
|
|
|
repo = "sentry-python";
|
2022-11-21 17:40:18 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-OWoMqJlf0vmBHWWsW6mF4u5X9USzxkFmCJyX7Ws0dD0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
build-system = [ setuptools ];
|
2024-01-13 08:15:51 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
dependencies = [
|
2021-12-19 01:06:50 +00:00
|
|
|
certifi
|
|
|
|
urllib3
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
passthru.optional-dependencies = {
|
2024-04-21 15:54:59 +00:00
|
|
|
aiohttp = [ aiohttp ];
|
|
|
|
beam = [ apache-beam ];
|
|
|
|
bottle = [ bottle ];
|
|
|
|
celery = [ celery ];
|
|
|
|
chalice = [ chalice ];
|
|
|
|
django = [ django ];
|
|
|
|
falcon = [ falcon ];
|
2022-06-16 17:23:12 +00:00
|
|
|
flask = [
|
|
|
|
flask
|
|
|
|
blinker
|
|
|
|
];
|
2024-04-21 15:54:59 +00:00
|
|
|
httpx = [ httpx ];
|
|
|
|
pyspark = [ pyspark ];
|
2022-06-16 17:23:12 +00:00
|
|
|
pure_eval = [
|
|
|
|
asttokens
|
|
|
|
executing
|
|
|
|
pure-eval
|
|
|
|
];
|
|
|
|
quart = [
|
2024-02-29 20:09:43 +00:00
|
|
|
quart
|
2022-06-16 17:23:12 +00:00
|
|
|
blinker
|
|
|
|
];
|
2024-04-21 15:54:59 +00:00
|
|
|
rq = [ rq ];
|
|
|
|
sanic = [ sanic ];
|
|
|
|
sqlalchemy = [ sqlalchemy ];
|
|
|
|
tornado = [ tornado ];
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-12-19 01:06:50 +00:00
|
|
|
asttokens
|
|
|
|
executing
|
|
|
|
gevent
|
|
|
|
jsonschema
|
2022-06-16 17:23:12 +00:00
|
|
|
mock
|
2021-12-19 01:06:50 +00:00
|
|
|
pure-eval
|
2022-06-16 17:23:12 +00:00
|
|
|
pyrsistent
|
2023-11-16 04:20:00 +00:00
|
|
|
pysocks
|
2021-12-19 01:06:50 +00:00
|
|
|
pytest-forked
|
|
|
|
pytest-localserver
|
2022-06-16 17:23:12 +00:00
|
|
|
pytest-watch
|
2021-12-19 01:06:50 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-19 01:06:50 +00:00
|
|
|
doCheck = !stdenv.isDarwin;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-19 01:06:50 +00:00
|
|
|
disabledTests = [
|
|
|
|
# Issue with the asseration
|
|
|
|
"test_auto_enabling_integrations_catches_import_error"
|
2024-01-25 14:12:00 +00:00
|
|
|
"test_default_release"
|
2021-12-19 01:06:50 +00:00
|
|
|
];
|
2021-01-09 10:05:03 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
disabledTestPaths =
|
|
|
|
[
|
|
|
|
# Varius 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"
|
|
|
|
];
|
2021-01-09 10:05:03 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
pythonImportsCheck = [ "sentry_sdk" ];
|
2021-01-09 10:05:03 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-12-19 01:06:50 +00:00
|
|
|
description = "Python SDK for Sentry.io";
|
2021-01-09 10:05:03 +00:00
|
|
|
homepage = "https://github.com/getsentry/sentry-python";
|
2022-11-21 17:40:18 +00:00
|
|
|
changelog = "https://github.com/getsentry/sentry-python/blob/${version}/CHANGELOG.md";
|
2021-01-09 10:05:03 +00:00
|
|
|
license = licenses.bsd2;
|
2024-04-21 15:54:59 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
fab
|
|
|
|
gebner
|
|
|
|
];
|
2021-01-09 10:05:03 +00:00
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|