2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2020-02-28 20:02:57 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, aiohttp
|
|
|
|
, black
|
|
|
|
, codecov
|
|
|
|
, flake8
|
|
|
|
, isPy3k
|
|
|
|
, mock
|
|
|
|
, pytest-mock
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytestcov
|
|
|
|
, pytestrunner
|
|
|
|
, requests
|
|
|
|
, responses
|
|
|
|
, six
|
|
|
|
, websocket_client
|
|
|
|
}:
|
2018-07-27 17:16:29 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-slackclient";
|
2020-02-28 20:02:57 +00:00
|
|
|
version = "2.5.0";
|
|
|
|
|
|
|
|
disabled = !isPy3k;
|
2018-07-27 17:16:29 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "slackapi";
|
|
|
|
repo = pname;
|
2019-09-09 00:38:31 +01:00
|
|
|
rev = version;
|
2020-02-28 20:02:57 +00:00
|
|
|
sha256 = "1ngj1mivbln19546195k400w9yaw69g0w6is7c75rqwyxr8wgzsk";
|
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 = [
|
|
|
|
black
|
|
|
|
codecov
|
|
|
|
flake8
|
|
|
|
mock
|
|
|
|
pytest-mock
|
|
|
|
pytestCheckHook
|
|
|
|
pytestcov
|
|
|
|
pytestrunner
|
|
|
|
responses
|
|
|
|
];
|
2018-07-27 17:16:29 +01:00
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|