diff options
author | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2021-01-06 10:12:32 +0100 |
---|---|---|
committer | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2021-01-07 10:43:51 +0100 |
commit | 5a8b375db408d6f99543a2f0e41b325542f40687 (patch) | |
tree | c8efac6fb33160102689c2bb581b9faedfa5dc3b /pkgs/development/python-modules/sentry-sdk | |
parent | 0165a72e092d150c6cbf4706796d4d8ee6b346d3 (diff) |
pythonPackages.sentry-sdk: Disable tests
Diffstat (limited to 'pkgs/development/python-modules/sentry-sdk')
-rw-r--r-- | pkgs/development/python-modules/sentry-sdk/default.nix | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/pkgs/development/python-modules/sentry-sdk/default.nix b/pkgs/development/python-modules/sentry-sdk/default.nix index 9df9453b2b4d1..5f640d44b1ca3 100644 --- a/pkgs/development/python-modules/sentry-sdk/default.nix +++ b/pkgs/development/python-modules/sentry-sdk/default.nix @@ -42,12 +42,6 @@ buildPythonPackage rec { propagatedBuildInputs = [ urllib3 certifi ]; - 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 ]; - }; # The Sentry tests need access to `/etc/protocols` (the tests call # `socket.getprotobyname('tcp')`, which reads from this file). Normally @@ -57,5 +51,17 @@ buildPythonPackage rec { export NIX_REDIRECTS=/etc/protocols=${iana-etc}/etc/protocols export LD_PRELOAD=${libredirect}/lib/libredirect.so ''; + postCheck = "unset NIX_REDIRECTS LD_PRELOAD"; + + # no tests + doCheck = false; + pythonImportsCheck = [ "sentry_sdk" ]; + + 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 ]; + }; } |