mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-10-30 22:21:26 +00:00
python312Packages.slackclient: rename
This commit is contained in:
parent
46c0e80271
commit
34182f9f83
@ -1,94 +0,0 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
aiohttp,
|
||||
boto3,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
flask,
|
||||
flask-sockets,
|
||||
pythonOlder,
|
||||
mock,
|
||||
moto,
|
||||
psutil,
|
||||
pytest-mock,
|
||||
pytestCheckHook,
|
||||
requests,
|
||||
responses,
|
||||
sqlalchemy,
|
||||
websockets,
|
||||
websocket-client,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "slackclient";
|
||||
version = "3.29.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "slackapi";
|
||||
repo = "python-slack-sdk";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-49dSRg0nrTXuXfnrC2/3p/zYMxouXO9FLqSBSxg4TcU=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aiohttp
|
||||
websocket-client
|
||||
requests
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
boto3
|
||||
flask
|
||||
flask-sockets
|
||||
mock
|
||||
moto
|
||||
psutil
|
||||
pytest-mock
|
||||
pytestCheckHook
|
||||
responses
|
||||
sqlalchemy
|
||||
websockets
|
||||
];
|
||||
|
||||
pytestFlagsArray = [
|
||||
# Exclude tests that requires network features
|
||||
"--ignore=integration_tests"
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
export HOME=$(mktemp -d)
|
||||
'';
|
||||
|
||||
disabledTests =
|
||||
[
|
||||
"test_start_raises_an_error_if_rtm_ws_url_is_not_returned"
|
||||
"test_interactions"
|
||||
"test_send_message_while_disconnection"
|
||||
]
|
||||
++ lib.optionals stdenv.isDarwin [
|
||||
# these fail with `ConnectionResetError: [Errno 54] Connection reset by peer`
|
||||
"test_issue_690_oauth_access"
|
||||
"test_issue_690_oauth_v2_access"
|
||||
"test_send"
|
||||
"test_send_attachments"
|
||||
"test_send_blocks"
|
||||
"test_send_dict"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "slack" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Client for Slack, which supports the Slack Web API and Real Time Messaging (RTM) API";
|
||||
homepage = "https://github.com/slackapi/python-slackclient";
|
||||
changelog = "https://github.com/slackapi/python-slack-sdk/releases/tag/v${version}";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [
|
||||
flokli
|
||||
psyanticy
|
||||
];
|
||||
};
|
||||
}
|
@ -504,6 +504,7 @@ mapAliases ({
|
||||
sharkiqpy = sharkiq; # added 2022-05-21
|
||||
shouldbe = throw "shouldbe was removed, because it was disabled on all python version since 3.8 and last updated in 2019."; # added 2024-05-12
|
||||
sip_4 = sip4; # added 2024-01-07
|
||||
slackclient = slack-sdk; # added 2024-06-27
|
||||
ssh-mitm = throw "ssh-mitm was removed in favor of the top-level ssh-mitm"; # added 2023-05-09
|
||||
smart_open = smart-open; # added 2021-03-14
|
||||
smmap2 = throw "smmap2 has been deprecated, use smmap instead."; # added 2020-03-14
|
||||
|
@ -14163,8 +14163,6 @@ self: super: with self; {
|
||||
|
||||
slack-sdk = callPackage ../development/python-modules/slack-sdk { };
|
||||
|
||||
slackclient = callPackage ../development/python-modules/slackclient { };
|
||||
|
||||
sleekxmpp = callPackage ../development/python-modules/sleekxmpp { };
|
||||
|
||||
sleepyq = callPackage ../development/python-modules/sleepyq { };
|
||||
|
Loading…
Reference in New Issue
Block a user