40 buildPythonPackage rec {
45 disabled = pythonOlder "3.7";
47 src = fetchFromGitHub {
49 repo = "sentry-python";
50 rev = "refs/tags/${version}";
51 hash = "sha256-OWoMqJlf0vmBHWWsW6mF4u5X9USzxkFmCJyX7Ws0dD0=";
54 build-system = [ setuptools ];
61 optional-dependencies = {
62 aiohttp = [ aiohttp ];
63 beam = [ apache-beam ];
66 chalice = [ chalice ];
74 pyspark = [ pyspark ];
86 sqlalchemy = [ sqlalchemy ];
87 tornado = [ tornado ];
105 doCheck = pythonOlder "3.13" && !stdenv.hostPlatform.isDarwin;
108 # Issue with the asseration
109 "test_auto_enabling_integrations_catches_import_error"
110 "test_default_release"
115 # Varius integration tests fail every once in a while when we
116 # upgrade dependencies, so don't bother testing them.
117 "tests/integrations/"
119 ++ lib.optionals (stdenv.buildPlatform != "x86_64-linux") [
120 # test crashes on aarch64
121 "tests/test_transport.py"
124 pythonImportsCheck = [ "sentry_sdk" ];
127 description = "Python SDK for Sentry.io";
128 homepage = "https://github.com/getsentry/sentry-python";
129 changelog = "https://github.com/getsentry/sentry-python/blob/${version}/CHANGELOG.md";
130 license = licenses.bsd2;
131 maintainers = with maintainers; [