5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
82 lines
1.5 KiB
Nix
82 lines
1.5 KiB
Nix
{ stdenv
|
|
, lib
|
|
, aiodns
|
|
, aiohttp
|
|
, boto3
|
|
, buildPythonPackage
|
|
, codecov
|
|
, fetchFromGitHub
|
|
, flake8
|
|
, flask-sockets
|
|
, moto
|
|
, pythonOlder
|
|
, psutil
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
, sqlalchemy
|
|
, websocket-client
|
|
, websockets
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "slack-sdk";
|
|
version = "3.23.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "slackapi";
|
|
repo = "python-slack-sdk";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-OsPwLOnmN3kvPmbM6lOaiTWwWvy7b9pgn1X536dCkWk=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
aiodns
|
|
aiohttp
|
|
boto3
|
|
sqlalchemy
|
|
websocket-client
|
|
websockets
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
codecov
|
|
flake8
|
|
flask-sockets
|
|
moto
|
|
psutil
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
];
|
|
|
|
preCheck = ''
|
|
export HOME=$(mktemp -d)
|
|
'';
|
|
|
|
disabledTestPaths = [
|
|
# Exclude tests that requires network features
|
|
"integration_tests"
|
|
];
|
|
|
|
disabledTests = [
|
|
# Requires network features
|
|
"test_start_raises_an_error_if_rtm_ws_url_is_not_returned"
|
|
"test_org_installation"
|
|
"test_interactions"
|
|
"test_issue_690_oauth_access"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"slack_sdk"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Slack Developer Kit for Python";
|
|
homepage = "https://slack.dev/python-slack-sdk/";
|
|
changelog = "https://github.com/slackapi/python-slack-sdk/releases/tag/v${version}";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|