nixpkgs/pkgs/development/python-modules/slackclient/default.nix

59 lines
1001 B
Nix
Raw Normal View History

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