2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2020-02-28 20:02:57 +00:00
|
|
|
, aiohttp
|
2021-02-05 08:18:10 +00:00
|
|
|
, buildPythonPackage
|
2020-02-28 20:02:57 +00:00
|
|
|
, codecov
|
2021-02-05 08:18:10 +00:00
|
|
|
, fetchFromGitHub
|
2020-02-28 20:02:57 +00:00
|
|
|
, flake8
|
|
|
|
, isPy3k
|
|
|
|
, mock
|
2021-02-05 08:18:10 +00:00
|
|
|
, psutil
|
|
|
|
, pytest-cov
|
2020-02-28 20:02:57 +00:00
|
|
|
, pytest-mock
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytestrunner
|
|
|
|
, requests
|
|
|
|
, responses
|
|
|
|
, six
|
|
|
|
, websocket_client
|
|
|
|
}:
|
2018-07-27 17:16:29 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-04-23 01:12:04 +01:00
|
|
|
pname = "slackclient";
|
2021-02-05 08:18:10 +00:00
|
|
|
version = "2.9.3";
|
2020-02-28 20:02:57 +00:00
|
|
|
|
|
|
|
disabled = !isPy3k;
|
2018-07-27 17:16:29 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-02-05 08:18:10 +00:00
|
|
|
owner = "slackapi";
|
|
|
|
repo = "python-slack-sdk";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1rfb7izgddv28ag37gdnv3sd8z2zysrxs7ad8x20x690zshpaq16";
|
2018-07-27 17:16:29 +01:00
|
|
|
};
|
|
|
|
|
2020-02-28 20:02:57 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
websocket_client
|
|
|
|
requests
|
|
|
|
six
|
|
|
|
];
|
2018-07-27 17:16:29 +01:00
|
|
|
|
2020-02-28 20:02:57 +00:00
|
|
|
checkInputs = [
|
|
|
|
codecov
|
|
|
|
flake8
|
|
|
|
mock
|
2021-02-05 08:18:10 +00:00
|
|
|
psutil
|
|
|
|
pytest-cov
|
2020-02-28 20:02:57 +00:00
|
|
|
pytest-mock
|
|
|
|
pytestCheckHook
|
|
|
|
pytestrunner
|
|
|
|
responses
|
|
|
|
];
|
2018-07-27 17:16:29 +01:00
|
|
|
|
2021-02-05 08:18:10 +00:00
|
|
|
# Exclude tests that requires network features
|
|
|
|
pytestFlagsArray = [ "--ignore=integration_tests" ];
|
|
|
|
disabledTests = [ "test_start_raises_an_error_if_rtm_ws_url_is_not_returned" ];
|
|
|
|
|
2021-02-05 00:05:48 +00:00
|
|
|
pythonImportsCheck = [ "slack" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-07-27 17:16:29 +01:00
|
|
|
description = "A client for Slack, which supports the Slack Web API and Real Time Messaging (RTM) API";
|
2020-02-28 20:02:57 +00:00
|
|
|
homepage = "https://github.com/slackapi/python-slackclient";
|
2018-07-27 17:16:29 +01:00
|
|
|
license = licenses.mit;
|
2020-02-28 20:02:57 +00:00
|
|
|
maintainers = with maintainers; [ flokli psyanticy ];
|
2018-07-27 17:16:29 +01:00
|
|
|
};
|
|
|
|
}
|