2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
aiodns,
|
|
|
|
aiohttp,
|
|
|
|
boto3,
|
|
|
|
buildPythonPackage,
|
|
|
|
codecov,
|
|
|
|
fetchFromGitHub,
|
|
|
|
flake8,
|
|
|
|
flask-sockets,
|
|
|
|
moto,
|
|
|
|
pythonOlder,
|
|
|
|
psutil,
|
|
|
|
pytest-asyncio,
|
|
|
|
pytestCheckHook,
|
|
|
|
setuptools,
|
|
|
|
sqlalchemy,
|
|
|
|
websocket-client,
|
|
|
|
websockets,
|
2021-02-16 17:04:54 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "slack-sdk";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "3.27.2";
|
2024-02-29 20:09:43 +00:00
|
|
|
pyproject = true;
|
2021-12-06 16:07:01 +00:00
|
|
|
|
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}";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-1I08OUseiwCN9vUd56f9IFzCSB9kGjTLojyWm2dIimE=";
|
2021-02-16 17:04:54 +00:00
|
|
|
};
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pyproject.toml \
|
|
|
|
--replace-fail ', "pytest-runner"' ""
|
|
|
|
'';
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [ setuptools ];
|
2024-02-29 20:09:43 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
dependencies = [
|
2021-02-16 17:04:54 +00:00
|
|
|
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
|
|
|
|
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"
|
2023-08-04 22:07:22 +00:00
|
|
|
"test_issue_690_oauth_access"
|
2021-02-16 17:04:54 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +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}";
|
2024-06-05 15:53:02 +00:00
|
|
|
license = licenses.mit;
|
2021-02-16 17:04:54 +00:00
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|