2022-06-16 17:23:12 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2021-02-16 17:04:54 +00:00
|
|
|
, aiodns
|
|
|
|
, aiohttp
|
|
|
|
, boto3
|
|
|
|
, buildPythonPackage
|
|
|
|
, codecov
|
|
|
|
, databases
|
|
|
|
, fetchFromGitHub
|
|
|
|
, flake8
|
|
|
|
, flask-sockets
|
2021-08-18 13:19:15 +00:00
|
|
|
, moto
|
|
|
|
, pythonOlder
|
2021-02-16 17:04:54 +00:00
|
|
|
, psutil
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
|
|
|
, sqlalchemy
|
2021-06-28 23:13:55 +00:00
|
|
|
, websocket-client
|
2021-02-16 17:04:54 +00:00
|
|
|
, websockets
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "slack-sdk";
|
2023-03-15 16:39:30 +00:00
|
|
|
version = "3.20.2";
|
2021-12-06 16:07:01 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2021-08-18 13:19:15 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2021-02-16 17:04:54 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "slackapi";
|
|
|
|
repo = "python-slack-sdk";
|
2022-04-27 09:35:20 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-2MPXV+rVXZYMTZe11T8x8GKQmHZwUlkwarCkheVkERo=";
|
2021-02-16 17:04:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiodns
|
|
|
|
aiohttp
|
|
|
|
boto3
|
|
|
|
sqlalchemy
|
2021-06-28 23:13:55 +00:00
|
|
|
websocket-client
|
2021-02-16 17:04:54 +00:00
|
|
|
websockets
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-02-16 17:04:54 +00:00
|
|
|
codecov
|
|
|
|
databases
|
|
|
|
flake8
|
|
|
|
flask-sockets
|
2021-08-18 13:19:15 +00:00
|
|
|
moto
|
2021-02-16 17:04:54 +00:00
|
|
|
psutil
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
export HOME=$(mktemp -d)
|
|
|
|
'';
|
|
|
|
|
2021-07-16 19:40:57 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# Exclude tests that requires network features
|
|
|
|
"integration_tests"
|
|
|
|
];
|
|
|
|
|
2021-02-16 17:04:54 +00:00
|
|
|
disabledTests = [
|
2021-07-16 19:40:57 +00:00
|
|
|
# Requires network features
|
2021-02-16 17:04:54 +00:00
|
|
|
"test_start_raises_an_error_if_rtm_ws_url_is_not_returned"
|
|
|
|
"test_org_installation"
|
2021-07-16 19:40:57 +00:00
|
|
|
"test_interactions"
|
2021-02-16 17:04:54 +00:00
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"slack_sdk"
|
|
|
|
];
|
2021-02-16 17:04:54 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Slack Developer Kit for Python";
|
|
|
|
homepage = "https://slack.dev/python-slack-sdk/";
|
2022-11-27 09:42:12 +00:00
|
|
|
changelog = "https://github.com/slackapi/python-slack-sdk/releases/tag/v${version}";
|
2021-02-16 17:04:54 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|