2021-02-05 08:19:01 +00:00
|
|
|
{ lib
|
|
|
|
, aiodns
|
|
|
|
, aiohttp
|
|
|
|
, boto3
|
|
|
|
, buildPythonPackage
|
|
|
|
, codecov
|
|
|
|
, databases
|
|
|
|
, fetchFromGitHub
|
|
|
|
, flake8
|
|
|
|
, flask-sockets
|
|
|
|
, isPy3k
|
|
|
|
, psutil
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytest-cov
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytestrunner
|
|
|
|
, 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-06-19 02:39:14 +01:00
|
|
|
version = "3.7.0";
|
2021-02-05 08:19:01 +00:00
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "slackapi";
|
|
|
|
repo = "python-slack-sdk";
|
|
|
|
rev = "v${version}";
|
2021-06-19 02:39:14 +01:00
|
|
|
sha256 = "0bc52v5n8r3b2fy1c90w253r1abl752kaqdk6bgzkwsvbhgcxf2s";
|
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
|
|
|
|
psutil
|
|
|
|
pytest-asyncio
|
|
|
|
pytest-cov
|
|
|
|
pytestCheckHook
|
|
|
|
pytestrunner
|
|
|
|
];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
export HOME=$(mktemp -d)
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Exclude tests that requires network features
|
|
|
|
pytestFlagsArray = [ "--ignore=integration_tests" ];
|
|
|
|
disabledTests = [
|
|
|
|
"test_start_raises_an_error_if_rtm_ws_url_is_not_returned"
|
|
|
|
"test_org_installation"
|
|
|
|
];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|