21 buildPythonPackage rec {
22 pname = "pytelegrambotapi";
26 disabled = pythonOlder "3.7";
28 src = fetchFromGitHub {
30 repo = "pyTelegramBotAPI";
31 rev = "refs/tags/${version}";
32 hash = "sha256-R/RbkiKkhcZd17hgDJnEpr3OCVMvn744YM+lmzSXKWs=";
35 build-system = [ hatchling ];
37 optional-dependencies = {
41 aioredis = [ aioredis ];
42 aiohttp = [ aiohttp ];
43 fastapi = [ fastapi ];
44 uvicorn = [ uvicorn ];
46 coloredlogs = [ coloredlogs ];
47 watchdog = [ watchdog ];
53 ] ++ optional-dependencies.watchdog ++ optional-dependencies.aiohttp;
55 pythonImportsCheck = [ "telebot" ];
58 description = "Python implementation for the Telegram Bot API";
59 homepage = "https://github.com/eternnoir/pyTelegramBotAPI";
60 changelog = "https://github.com/eternnoir/pyTelegramBotAPI/releases/tag/${version}";
61 license = licenses.gpl2Only;
62 maintainers = with maintainers; [ das_j ];