2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2023-01-20 10:41:00 +00:00
|
|
|
, aiolimiter
|
2023-03-15 16:39:30 +00:00
|
|
|
, apscheduler
|
2023-01-20 10:41:00 +00:00
|
|
|
, beautifulsoup4
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
2021-06-28 23:13:55 +00:00
|
|
|
, cachetools
|
2023-01-20 10:41:00 +00:00
|
|
|
, cryptography
|
|
|
|
, fetchFromGitHub
|
|
|
|
, flaky
|
|
|
|
, httpx
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytest-timeout
|
|
|
|
, pytest-xdist
|
|
|
|
, pytestCheckHook
|
2021-06-28 23:13:55 +00:00
|
|
|
, pythonOlder
|
2023-01-20 10:41:00 +00:00
|
|
|
, pytz
|
2023-10-09 19:29:22 +00:00
|
|
|
, setuptools
|
|
|
|
, wheel
|
2023-01-20 10:41:00 +00:00
|
|
|
, tornado
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-telegram-bot";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "20.8";
|
|
|
|
pyproject = true;
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
src = fetchFromGitHub {
|
2024-02-29 20:09:43 +00:00
|
|
|
owner = "python-telegram-bot";
|
|
|
|
repo = "python-telegram-bot";
|
2023-01-20 10:41:00 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-FvVUl0bV95IDPbG+6N9b3ZIsnLAUwVcdS4cu0I1aNDw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
wheel
|
|
|
|
];
|
|
|
|
|
2021-04-12 18:23:04 +00:00
|
|
|
propagatedBuildInputs = [
|
2023-01-20 10:41:00 +00:00
|
|
|
aiolimiter
|
2023-03-15 16:39:30 +00:00
|
|
|
apscheduler
|
2021-06-28 23:13:55 +00:00
|
|
|
cachetools
|
2023-01-20 10:41:00 +00:00
|
|
|
cryptography
|
|
|
|
httpx
|
|
|
|
pytz
|
2023-03-24 00:07:29 +00:00
|
|
|
]
|
|
|
|
++ httpx.optional-dependencies.socks
|
|
|
|
++ httpx.optional-dependencies.http2;
|
2023-01-20 10:41:00 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2023-01-20 10:41:00 +00:00
|
|
|
beautifulsoup4
|
|
|
|
flaky
|
|
|
|
pytest-asyncio
|
|
|
|
pytest-timeout
|
|
|
|
pytest-xdist
|
|
|
|
pytestCheckHook
|
2021-04-12 18:23:04 +00:00
|
|
|
tornado
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"telegram"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
disabledTests = [
|
|
|
|
# Tests require network access
|
|
|
|
"TestAIO"
|
|
|
|
"TestAnimation"
|
|
|
|
"TestApplication"
|
|
|
|
"TestAudio"
|
|
|
|
"TestBase"
|
|
|
|
"TestBot"
|
|
|
|
"TestCallback"
|
|
|
|
"TestChat"
|
|
|
|
"TestChosenInlineResult"
|
|
|
|
"TestCommandHandler"
|
|
|
|
"TestConstants"
|
|
|
|
"TestContact"
|
|
|
|
"TestConversationHandler"
|
|
|
|
"TestDice"
|
|
|
|
"TestDict"
|
|
|
|
"TestDocument"
|
|
|
|
"TestFile"
|
|
|
|
"TestForceReply"
|
|
|
|
"TestForum"
|
|
|
|
"TestGame"
|
|
|
|
"TestGet"
|
|
|
|
"TestHTTP"
|
|
|
|
"TestInline"
|
|
|
|
"TestInput"
|
|
|
|
"TestInvoice"
|
|
|
|
"TestJob"
|
|
|
|
"TestKeyboard"
|
|
|
|
"TestLocation"
|
|
|
|
"TestMask"
|
|
|
|
"TestMenu"
|
|
|
|
"TestMessage"
|
|
|
|
"TestMeta"
|
|
|
|
"TestOrder"
|
|
|
|
"TestPassport"
|
|
|
|
"TestPhoto"
|
|
|
|
"TestPickle"
|
|
|
|
"TestPoll"
|
|
|
|
"TestPre"
|
|
|
|
"TestPrefix"
|
|
|
|
"TestProximity"
|
|
|
|
"TestReply"
|
|
|
|
"TestRequest"
|
|
|
|
"TestSend"
|
|
|
|
"TestSent"
|
|
|
|
"TestShipping"
|
|
|
|
"TestSlot"
|
|
|
|
"TestSticker"
|
|
|
|
"TestString"
|
|
|
|
"TestSuccess"
|
|
|
|
"TestTelegram"
|
|
|
|
"TestType"
|
|
|
|
"TestUpdate"
|
|
|
|
"TestUser"
|
|
|
|
"TestVenue"
|
|
|
|
"TestVideo"
|
|
|
|
"TestVoice"
|
|
|
|
"TestWeb"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-04-12 18:23:04 +00:00
|
|
|
description = "Python library to interface with the Telegram Bot API";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://python-telegram-bot.org";
|
2023-01-20 10:41:00 +00:00
|
|
|
changelog = "https://github.com/python-telegram-bot/python-telegram-bot/blob/v${version}/CHANGES.rst";
|
2021-03-09 03:18:52 +00:00
|
|
|
license = licenses.lgpl3Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ veprbl pingiun ];
|
|
|
|
};
|
|
|
|
}
|