2021-12-19 01:06:50 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, aiohttp
|
2022-06-16 17:23:12 +00:00
|
|
|
, apache-beam
|
2022-11-21 17:40:18 +00:00
|
|
|
, asttokens
|
2020-12-09 12:39:15 +00:00
|
|
|
, blinker
|
|
|
|
, botocore
|
2020-04-24 23:36:52 +00:00
|
|
|
, bottle
|
2022-11-21 17:40:18 +00:00
|
|
|
, buildPythonPackage
|
2020-04-24 23:36:52 +00:00
|
|
|
, celery
|
2022-11-21 17:40:18 +00:00
|
|
|
, certifi
|
2020-12-09 12:39:15 +00:00
|
|
|
, chalice
|
2020-04-24 23:36:52 +00:00
|
|
|
, django
|
2022-11-21 17:40:18 +00:00
|
|
|
, executing
|
2020-04-24 23:36:52 +00:00
|
|
|
, falcon
|
2022-11-21 17:40:18 +00:00
|
|
|
, fetchFromGitHub
|
2022-06-16 17:23:12 +00:00
|
|
|
, flask
|
2022-10-21 18:38:19 +00:00
|
|
|
, flask-login
|
2022-11-21 17:40:18 +00:00
|
|
|
, gevent
|
2021-12-19 01:06:50 +00:00
|
|
|
, httpx
|
2022-11-21 17:40:18 +00:00
|
|
|
, jsonschema
|
|
|
|
, mock
|
2021-12-19 01:06:50 +00:00
|
|
|
, pure-eval
|
2020-04-24 23:36:52 +00:00
|
|
|
, pyramid
|
2022-11-21 17:40:18 +00:00
|
|
|
, pyrsistent
|
2021-12-19 01:06:50 +00:00
|
|
|
, pyspark
|
2022-11-21 17:40:18 +00:00
|
|
|
, pytest-forked
|
|
|
|
, pytest-localserver
|
|
|
|
, pytest-watch
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
, rq
|
|
|
|
, sanic
|
|
|
|
, sqlalchemy
|
|
|
|
, tornado
|
2020-07-18 16:06:22 +00:00
|
|
|
, trytond
|
2022-11-21 17:40:18 +00:00
|
|
|
, urllib3
|
2020-07-18 16:06:22 +00:00
|
|
|
, werkzeug
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sentry-sdk";
|
2023-08-04 22:07:22 +00:00
|
|
|
version = "1.29.2";
|
2021-12-19 01:06:50 +00:00
|
|
|
format = "setuptools";
|
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}";
|
2023-08-04 22:07:22 +00:00
|
|
|
hash = "sha256-etn7vkKgCN7a8Dxv4gDSVaG6mvCltVh6rTOLaKEyNRA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-12-19 01:06:50 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
certifi
|
|
|
|
urllib3
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
passthru.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 missing
|
|
|
|
blinker
|
|
|
|
];
|
|
|
|
rq = [
|
|
|
|
rq
|
|
|
|
];
|
|
|
|
sanic = [
|
|
|
|
sanic
|
|
|
|
];
|
|
|
|
sqlalchemy = [
|
|
|
|
sqlalchemy
|
|
|
|
];
|
|
|
|
tornado = [
|
|
|
|
tornado
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
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
|
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"
|
|
|
|
];
|
2021-01-09 10:05:03 +00:00
|
|
|
|
2021-12-19 01:06:50 +00:00
|
|
|
disabledTestPaths = [
|
2022-06-16 17:23:12 +00:00
|
|
|
# Varius integration tests fail every once in a while when we
|
|
|
|
# upgrade depencies, so don't bother testing them.
|
|
|
|
"tests/integrations/"
|
|
|
|
] ++ lib.optionals (stdenv.buildPlatform != "x86_64-linux") [
|
|
|
|
# test crashes on aarch64
|
2022-04-27 09:35:20 +00:00
|
|
|
"tests/test_transport.py"
|
2021-12-19 01:06:50 +00:00
|
|
|
];
|
2021-01-09 10:05:03 +00:00
|
|
|
|
2021-12-19 01:06:50 +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;
|
2021-12-19 01:06:50 +00:00
|
|
|
maintainers = with maintainers; [ fab gebner ];
|
2021-01-09 10:05:03 +00:00
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|