2020-04-24 23:36:52 +00:00
|
|
|
{ aiohttp
|
2020-12-09 12:39:15 +00:00
|
|
|
, blinker
|
|
|
|
, botocore
|
2020-04-24 23:36:52 +00:00
|
|
|
, bottle
|
|
|
|
, buildPythonPackage
|
|
|
|
, celery
|
|
|
|
, certifi
|
2020-12-09 12:39:15 +00:00
|
|
|
, chalice
|
2020-04-24 23:36:52 +00:00
|
|
|
, django
|
|
|
|
, falcon
|
|
|
|
, fetchPypi
|
|
|
|
, flask
|
|
|
|
, iana-etc
|
|
|
|
, isPy3k
|
|
|
|
, libredirect
|
|
|
|
, pyramid
|
|
|
|
, rq
|
|
|
|
, sanic
|
|
|
|
, sqlalchemy
|
2021-01-15 22:18:51 +00:00
|
|
|
, lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, tornado
|
|
|
|
, urllib3
|
2020-07-18 16:06:22 +00:00
|
|
|
, trytond
|
|
|
|
, werkzeug
|
2020-09-25 04:45:31 +00:00
|
|
|
, executing
|
|
|
|
, pure-eval
|
|
|
|
, asttokens
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sentry-sdk";
|
2020-12-07 07:45:13 +00:00
|
|
|
version = "0.19.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-12-07 07:45:13 +00:00
|
|
|
sha256 = "1052f0ed084e532f66cb3e4ba617960d820152aee8b93fc6c05bd53861768c1c";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-12-09 12:39:15 +00:00
|
|
|
checkInputs = [ blinker botocore chalice django flask tornado bottle rq falcon sqlalchemy werkzeug trytond
|
2020-09-25 04:45:31 +00:00
|
|
|
executing pure-eval asttokens ]
|
2020-04-24 23:36:52 +00:00
|
|
|
++ stdenv.lib.optionals isPy3k [ celery pyramid sanic aiohttp ];
|
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
propagatedBuildInputs = [ urllib3 certifi ];
|
2020-04-24 23:36:52 +00: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
|
|
|
|
'';
|
2021-01-09 10:05:03 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
postCheck = "unset NIX_REDIRECTS LD_PRELOAD";
|
2021-01-09 10:05:03 +00:00
|
|
|
|
|
|
|
# no tests
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "sentry_sdk" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-01-09 10:05:03 +00:00
|
|
|
homepage = "https://github.com/getsentry/sentry-python";
|
|
|
|
description = "New Python SDK for Sentry.io";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ gebner ];
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|