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";
|
2022-10-30 15:09:59 +00:00
|
|
|
version = "3.19.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}";
|
2022-10-30 15:09:59 +00:00
|
|
|
sha256 = "sha256-Ldw3mqCYKo+yMGv7gofb895JOfP/AAthJd2uNzAqLkA=";
|
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
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
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/";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|