2019-12-05 10:24:33 +01:00
|
|
|
{ aiohttp
|
|
|
|
, bottle
|
|
|
|
, buildPythonPackage
|
|
|
|
, celery
|
|
|
|
, certifi
|
|
|
|
, django
|
|
|
|
, falcon
|
|
|
|
, fetchPypi
|
|
|
|
, flask
|
|
|
|
, iana-etc
|
|
|
|
, isPy3k
|
|
|
|
, libredirect
|
|
|
|
, pyramid
|
|
|
|
, rq
|
|
|
|
, sanic
|
2020-01-14 17:10:30 +01:00
|
|
|
, sqlalchemy
|
2019-12-05 10:24:33 +01:00
|
|
|
, stdenv
|
|
|
|
, tornado
|
|
|
|
, urllib3
|
2020-06-25 12:48:52 +02:00
|
|
|
, trytond
|
|
|
|
, werkzeug
|
2019-12-05 10:24:33 +01:00
|
|
|
}:
|
2019-05-30 15:25:13 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sentry-sdk";
|
2020-06-06 08:47:31 +02:00
|
|
|
version = "0.14.4";
|
2019-05-30 15:25:13 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-06 08:47:31 +02:00
|
|
|
sha256 = "0e5e947d0f7a969314aa23669a94a9712be5a688ff069ff7b9fc36c66adc160c";
|
2019-05-30 15:25:13 +02:00
|
|
|
};
|
|
|
|
|
2020-06-25 12:48:52 +02:00
|
|
|
checkInputs = [ django flask tornado bottle rq falcon sqlalchemy werkzeug ]
|
2019-10-28 08:17:50 +01:00
|
|
|
++ stdenv.lib.optionals isPy3k [ celery pyramid sanic aiohttp ];
|
2019-09-20 11:03:18 +02:00
|
|
|
|
2020-06-25 12:48:52 +02:00
|
|
|
propagatedBuildInputs = [ urllib3 certifi trytond ];
|
2019-05-30 15:25:13 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "https://github.com/getsentry/sentry-python";
|
|
|
|
description = "New Python SDK for Sentry.io";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ gebner ];
|
|
|
|
};
|
2019-12-05 10:24:33 +01:00
|
|
|
|
|
|
|
# The Sentry tests need access to `/etc/protocols` (the tests call
|
|
|
|
# `socket.getprotobyname('tcp')`, which reads from this file). Normally
|
|
|
|
# this path isn't available in the sandbox. Therefore, use libredirect
|
|
|
|
# to make on eavailable from `iana-etc`. This is a test-only operation.
|
|
|
|
preCheck = ''
|
|
|
|
export NIX_REDIRECTS=/etc/protocols=${iana-etc}/etc/protocols
|
|
|
|
export LD_PRELOAD=${libredirect}/lib/libredirect.so
|
|
|
|
'';
|
|
|
|
postCheck = "unset NIX_REDIRECTS LD_PRELOAD";
|
2019-05-30 15:25:13 +02:00
|
|
|
}
|