python3Packages.sentry-sdk: fix trytond dependency

Tryton is an optional dependency, if it is present, Sentry can integrate
it, but when it is not present, Sentry should not pull it in as a
propagated build input, it is only required for the tests that test this
specific integration.

In particular, pulling in trytond creates a transitive dependency on
simplejson, which makes "requests" behave differently in a way that can
break error handling.
This commit is contained in:
Ruud van Asseldonk 2020-07-28 16:43:44 +02:00 committed by Jon
parent c3f8d59463
commit 302aed5ab4

View file

@ -30,10 +30,10 @@ buildPythonPackage rec {
sha256 = "0e5e947d0f7a969314aa23669a94a9712be5a688ff069ff7b9fc36c66adc160c";
};
checkInputs = [ django flask tornado bottle rq falcon sqlalchemy werkzeug ]
checkInputs = [ django flask tornado bottle rq falcon sqlalchemy werkzeug trytond ]
++ stdenv.lib.optionals isPy3k [ celery pyramid sanic aiohttp ];
propagatedBuildInputs = [ urllib3 certifi trytond ];
propagatedBuildInputs = [ urllib3 certifi ];
meta = with stdenv.lib; {
homepage = "https://github.com/getsentry/sentry-python";