1{ lib
2, aiodns
3, aiohttp
4, boto3
5, buildPythonPackage
6, codecov
7, databases
8, fetchFromGitHub
9, flake8
10, flask-sockets
11, moto
12, pythonOlder
13, psutil
14, pytest-asyncio
15, pytestCheckHook
16, sqlalchemy
17, websocket-client
18, websockets
19}:
20
21buildPythonPackage rec {
22 pname = "slack-sdk";
23 version = "3.11.2";
24 disabled = pythonOlder "3.6";
25
26 src = fetchFromGitHub {
27 owner = "slackapi";
28 repo = "python-slack-sdk";
29 rev = "v${version}";
30 sha256 = "sha256-jfFNka+PZXXYz6r7gwoxoqK7SX2RRcDNlCSqVG3JPY0=";
31 };
32
33 propagatedBuildInputs = [
34 aiodns
35 aiohttp
36 boto3
37 sqlalchemy
38 websocket-client
39 websockets
40 ];
41
42 checkInputs = [
43 codecov
44 databases
45 flake8
46 flask-sockets
47 moto
48 psutil
49 pytest-asyncio
50 pytestCheckHook
51 ];
52
53 preCheck = ''
54 export HOME=$(mktemp -d)
55 '';
56
57 disabledTestPaths = [
58 # Exclude tests that requires network features
59 "integration_tests"
60 ];
61
62 disabledTests = [
63 # Requires network features
64 "test_start_raises_an_error_if_rtm_ws_url_is_not_returned"
65 "test_org_installation"
66 "test_interactions"
67 ];
68
69 pythonImportsCheck = [ "slack_sdk" ];
70
71 meta = with lib; {
72 description = "Slack Developer Kit for Python";
73 homepage = "https://slack.dev/python-slack-sdk/";
74 license = with licenses; [ mit ];
75 maintainers = with maintainers; [ fab ];
76 };
77}