2022-06-16 17:23:12 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2021-02-16 17:04:54 +00:00
|
|
|
, aiodns
|
|
|
|
, aiohttp
|
|
|
|
, boto3
|
|
|
|
, buildPythonPackage
|
|
|
|
, codecov
|
|
|
|
, 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
|
2024-02-29 20:09:43 +00:00
|
|
|
, setuptools
|
2021-02-16 17:04:54 +00:00
|
|
|
, 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";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "3.27.1";
|
|
|
|
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-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-fBHu4e6pSt8yzXbLWr5cwjRFDfvdH2jzpSNzdMBg4N0=";
|
2021-02-16 17:04:54 +00:00
|
|
|
};
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pyproject.toml \
|
|
|
|
--replace-fail ', "pytest-runner"' ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
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
|
|
|
|
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
|
|
|
];
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|