2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2023-01-20 10:41:00 +00:00
|
|
|
, aiolimiter
|
2021-04-12 18:23:04 +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
|
|
|
|
, tornado
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-telegram-bot";
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "20.0";
|
2021-12-06 16:07:01 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-34Apzy7id+fDxTN935hPT0HeZNZMEdQqZ0aiV0trAxE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-04-12 18:23:04 +00:00
|
|
|
propagatedBuildInputs = [
|
2023-01-20 10:41:00 +00:00
|
|
|
aiolimiter
|
2021-04-12 18:23:04 +00:00
|
|
|
APScheduler
|
2021-06-28 23:13:55 +00:00
|
|
|
cachetools
|
2023-01-20 10:41:00 +00:00
|
|
|
cryptography
|
|
|
|
httpx
|
|
|
|
pytz
|
|
|
|
] ++ httpx.optional-dependencies.socks;
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|