about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/slackclient/default.nix
blob: 571398b783dc5263a160f398922fc3c597b804e7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{ lib, stdenv
, 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;
    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 ];
  };
}