diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2018-08-01 12:46:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-01 12:46:57 +0100 |
commit | d9cea0e6f177827cdd532ac7fad8c49106adf11a (patch) | |
tree | 4da15d5a5f27940103f156c6de6fda732a1176a0 /pkgs/development/python-modules | |
parent | 69a94a01c6450d0f59be725cadb9d51a56107c62 (diff) | |
parent | f3b60eb0a4716c3526e66dcf0250958a35b2d3db (diff) | |
download | nixlib-d9cea0e6f177827cdd532ac7fad8c49106adf11a.tar nixlib-d9cea0e6f177827cdd532ac7fad8c49106adf11a.tar.gz nixlib-d9cea0e6f177827cdd532ac7fad8c49106adf11a.tar.bz2 nixlib-d9cea0e6f177827cdd532ac7fad8c49106adf11a.tar.lz nixlib-d9cea0e6f177827cdd532ac7fad8c49106adf11a.tar.xz nixlib-d9cea0e6f177827cdd532ac7fad8c49106adf11a.tar.zst nixlib-d9cea0e6f177827cdd532ac7fad8c49106adf11a.zip |
Merge pull request #44155 from Assassinkin/slackclient
pythonPackages.slackclient:1.0.0 -> 1.2.1 | refactor
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r-- | pkgs/development/python-modules/slackclient/default.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/slackclient/default.nix b/pkgs/development/python-modules/slackclient/default.nix new file mode 100644 index 000000000000..71163a2f11f6 --- /dev/null +++ b/pkgs/development/python-modules/slackclient/default.nix @@ -0,0 +1,29 @@ +{ stdenv, buildPythonPackage, fetchFromGitHub, websocket_client, requests, six, pytest, codecov, coverage, mock, pytestcov, pytest-mock, responses, flake8 }: + +buildPythonPackage rec { + pname = "python-slackclient"; + version = "1.2.1"; + + src = fetchFromGitHub { + owner = "slackapi"; + repo = pname; + rev = "${version}"; + sha256 = "073fwf6fm2sqdp5ms3vm1v3ljh0pldi69k048404rp6iy3cfwkp0"; + }; + + propagatedBuildInputs = [ websocket_client requests six ]; + + checkInputs = [ pytest codecov coverage mock pytestcov pytest-mock responses flake8 ]; + # test_server.py fails because it needs connection (I think); + checkPhase = '' + py.test --cov-report= --cov=slackclient tests --ignore=tests/test_server.py + ''; + + meta = with stdenv.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; [ psyanticy ]; + }; +} + |