diff --git a/pkgs/development/python-modules/slack-sdk/default.nix b/pkgs/development/python-modules/slack-sdk/default.nix index 27c265bef36e..f8855e4c760a 100644 --- a/pkgs/development/python-modules/slack-sdk/default.nix +++ b/pkgs/development/python-modules/slack-sdk/default.nix @@ -2,6 +2,7 @@ lib, aiodns, aiohttp, + aiosqlite, boto3, buildPythonPackage, fetchFromGitHub, @@ -14,30 +15,27 @@ sqlalchemy, websocket-client, websockets, + writableTmpDirAsHomeHook, }: buildPythonPackage rec { pname = "slack-sdk"; - version = "3.34.0"; + version = "3.35.0"; pyproject = true; src = fetchFromGitHub { owner = "slackapi"; repo = "python-slack-sdk"; tag = "v${version}"; - hash = "sha256-aL8XOlvnAxT9cgPf8EvJT80FmlgL2Vhu7JxDRHkUoSM="; + hash = "sha256-yjYpALyHSTLQSuwd6xth7nqfi3m1C9tqnWrrVRmI220="; }; - postPatch = '' - substituteInPlace pyproject.toml \ - --replace-fail ', "pytest-runner"' "" - ''; - build-system = [ setuptools ]; dependencies = [ aiodns aiohttp + aiosqlite boto3 sqlalchemy websocket-client @@ -54,10 +52,6 @@ buildPythonPackage rec { pytestCheckHook ]; - preCheck = '' - export HOME=$(mktemp -d) - ''; - disabledTests = [ # Requires internet access (to slack API) "test_start_raises_an_error_if_rtm_ws_url_is_not_returned" @@ -65,6 +59,12 @@ buildPythonPackage rec { "test_send_message_while_disconnection" ]; + disabledTestPaths = [ + # Event loop issues + "tests/slack_sdk/oauth/installation_store/test_file.py" + "tests/slack_sdk/oauth/state_store/test_file.py" + ]; + __darwinAllowLocalNetworking = true; meta = {