2020-02-28 21:02:57 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, aiohttp
|
|
|
|
, black
|
|
|
|
, codecov
|
|
|
|
, flake8
|
|
|
|
, isPy3k
|
|
|
|
, mock
|
|
|
|
, pytest-mock
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytestcov
|
|
|
|
, pytestrunner
|
|
|
|
, requests
|
|
|
|
, responses
|
|
|
|
, six
|
|
|
|
, websocket_client
|
|
|
|
}:
|
2018-07-27 18:16:29 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-slackclient";
|
2020-02-28 21:02:57 +01:00
|
|
|
version = "2.5.0";
|
|
|
|
|
|
|
|
disabled = !isPy3k;
|
2018-07-27 18:16:29 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "slackapi";
|
|
|
|
repo = pname;
|
2019-09-09 01:38:31 +02:00
|
|
|
rev = version;
|
2020-02-28 21:02:57 +01:00
|
|
|
sha256 = "1ngj1mivbln19546195k400w9yaw69g0w6is7c75rqwyxr8wgzsk";
|
2018-07-27 18:16:29 +02:00
|
|
|
};
|
|
|
|
|
2020-02-28 21:02:57 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
websocket_client
|
|
|
|
requests
|
|
|
|
six
|
|
|
|
];
|
2018-07-27 18:16:29 +02:00
|
|
|
|
2020-02-28 21:02:57 +01:00
|
|
|
checkInputs = [
|
|
|
|
black
|
|
|
|
codecov
|
|
|
|
flake8
|
|
|
|
mock
|
|
|
|
pytest-mock
|
|
|
|
pytestCheckHook
|
|
|
|
pytestcov
|
|
|
|
pytestrunner
|
|
|
|
responses
|
|
|
|
];
|
2018-07-27 18:16:29 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A client for Slack, which supports the Slack Web API and Real Time Messaging (RTM) API";
|
2020-02-28 21:02:57 +01:00
|
|
|
homepage = "https://github.com/slackapi/python-slackclient";
|
2018-07-27 18:16:29 +02:00
|
|
|
license = licenses.mit;
|
2020-02-28 21:02:57 +01:00
|
|
|
maintainers = with maintainers; [ flokli psyanticy ];
|
2018-07-27 18:16:29 +02:00
|
|
|
};
|
|
|
|
}
|