From 73a5be34ee0383383d2eb73ee502d6c640f97179 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 5 Feb 2021 09:18:10 +0100 Subject: [PATCH] python3Packages.slackclient: 2.5.0 -> 2.9.3 --- .../python-modules/slackclient/default.nix | 26 +++++++++++-------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/pkgs/development/python-modules/slackclient/default.nix b/pkgs/development/python-modules/slackclient/default.nix index d990295bff6..4a3c2927218 100644 --- a/pkgs/development/python-modules/slackclient/default.nix +++ b/pkgs/development/python-modules/slackclient/default.nix @@ -1,15 +1,15 @@ { lib -, buildPythonPackage -, fetchFromGitHub , aiohttp -, black +, buildPythonPackage , codecov +, fetchFromGitHub , flake8 , isPy3k , mock +, psutil +, pytest-cov , pytest-mock , pytestCheckHook -, pytestcov , pytestrunner , requests , responses @@ -19,15 +19,15 @@ buildPythonPackage rec { pname = "python-slackclient"; - version = "2.5.0"; + version = "2.9.3"; disabled = !isPy3k; src = fetchFromGitHub { - owner = "slackapi"; - repo = pname; - rev = version; - sha256 = "1ngj1mivbln19546195k400w9yaw69g0w6is7c75rqwyxr8wgzsk"; + owner = "slackapi"; + repo = "python-slack-sdk"; + rev = "v${version}"; + sha256 = "1rfb7izgddv28ag37gdnv3sd8z2zysrxs7ad8x20x690zshpaq16"; }; propagatedBuildInputs = [ @@ -38,17 +38,21 @@ buildPythonPackage rec { ]; checkInputs = [ - black codecov flake8 mock + psutil + pytest-cov pytest-mock pytestCheckHook - pytestcov pytestrunner responses ]; + # Exclude tests that requires network features + pytestFlagsArray = [ "--ignore=integration_tests" ]; + disabledTests = [ "test_start_raises_an_error_if_rtm_ws_url_is_not_returned" ]; + pythonImportsCheck = [ "slack" ]; meta = with lib; {