2021-02-05 08:19:01 +00:00
|
|
|
{ lib
|
|
|
|
, aiodns
|
|
|
|
, aiohttp
|
|
|
|
, boto3
|
|
|
|
, buildPythonPackage
|
|
|
|
, codecov
|
|
|
|
, databases
|
|
|
|
, fetchFromGitHub
|
|
|
|
, flake8
|
|
|
|
, flask-sockets
|
2021-08-13 22:49:36 +01:00
|
|
|
, moto
|
|
|
|
, pythonOlder
|
2021-02-05 08:19:01 +00:00
|
|
|
, psutil
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
|
|
|
, sqlalchemy
|
2021-06-15 12:12:45 +01:00
|
|
|
, websocket-client
|
2021-02-05 08:19:01 +00:00
|
|
|
, websockets
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "slack-sdk";
|
2021-09-22 13:18:28 +01:00
|
|
|
version = "3.11.2";
|
2021-08-13 22:49:36 +01:00
|
|
|
disabled = pythonOlder "3.6";
|
2021-02-05 08:19:01 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "slackapi";
|
|
|
|
repo = "python-slack-sdk";
|
|
|
|
rev = "v${version}";
|
2021-09-22 13:18:28 +01:00
|
|
|
sha256 = "sha256-jfFNka+PZXXYz6r7gwoxoqK7SX2RRcDNlCSqVG3JPY0=";
|
2021-02-05 08:19:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiodns
|
|
|
|
aiohttp
|
|
|
|
boto3
|
|
|
|
sqlalchemy
|
2021-06-15 12:12:45 +01:00
|
|
|
websocket-client
|
2021-02-05 08:19:01 +00:00
|
|
|
websockets
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
codecov
|
|
|
|
databases
|
|
|
|
flake8
|
|
|
|
flask-sockets
|
2021-08-13 22:49:36 +01:00
|
|
|
moto
|
2021-02-05 08:19:01 +00:00
|
|
|
psutil
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
export HOME=$(mktemp -d)
|
|
|
|
'';
|
|
|
|
|
2021-07-16 08:34:35 +01:00
|
|
|
disabledTestPaths = [
|
|
|
|
# Exclude tests that requires network features
|
|
|
|
"integration_tests"
|
|
|
|
];
|
|
|
|
|
2021-02-05 08:19:01 +00:00
|
|
|
disabledTests = [
|
2021-07-16 08:34:35 +01:00
|
|
|
# Requires network features
|
2021-02-05 08:19:01 +00:00
|
|
|
"test_start_raises_an_error_if_rtm_ws_url_is_not_returned"
|
|
|
|
"test_org_installation"
|
2021-07-16 08:34:35 +01:00
|
|
|
"test_interactions"
|
2021-02-05 08:19:01 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "slack_sdk" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Slack Developer Kit for Python";
|
|
|
|
homepage = "https://slack.dev/python-slack-sdk/";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|