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
|
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-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
|
2022-11-21 17:40:18 +00:00
|
|
|
, pyrsistent
|
2021-12-19 01:06:50 +00:00
|
|
|
, pyspark
|
2023-11-16 04:20:00 +00:00
|
|
|
, pysocks
|
2022-11-21 17:40:18 +00:00
|
|
|
, pytest-forked
|
|
|
|
, pytest-localserver
|
|
|
|
, pytest-watch
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2024-02-29 20:09:43 +00:00
|
|
|
, quart
|
2020-04-24 23:36:52 +00:00
|
|
|
, rq
|
|
|
|
, sanic
|
2024-01-13 08:15:51 +00:00
|
|
|
, setuptools
|
2020-04-24 23:36:52 +00:00
|
|
|
, sqlalchemy
|
|
|
|
, tornado
|
2022-11-21 17:40:18 +00:00
|
|
|
, urllib3
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sentry-sdk";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "1.40.5";
|
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-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-WlOMYMgQSV7pZ+EA5HeS3HXJgEg+qhT6lAzLKknZiLk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
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 = [
|
2024-02-29 20:09:43 +00:00
|
|
|
quart
|
2022-06-16 17:23:12 +00:00
|
|
|
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
|
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
|
|
|
|
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
|
2024-01-25 14:12:00 +00:00
|
|
|
# upgrade dependencies, so don't bother testing them.
|
2022-06-16 17:23:12 +00:00
|
|
|
"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
|
|
|
}
|