nixpkgs/pkgs/development/python-modules/pyTelegramBotAPI/default.nix
Martin Weinelt 35234d67c1 python3Packages.pytelegrambotapi: 4.29.1 -> 4.30.0
https://github.com/eternnoir/pyTelegramBotAPI/releases/tag/4.30.0

This commit was automatically generated using update-python-libraries.
2026-02-01 17:20:05 +01:00

63 lines
1.3 KiB
Nix

{
lib,
aiohttp,
aioredis,
buildPythonPackage,
coloredlogs,
fastapi,
fetchFromGitHub,
hatchling,
pillow,
psutil,
pytestCheckHook,
redis,
requests,
ujson,
uvicorn,
watchdog,
}:
buildPythonPackage rec {
pname = "pytelegrambotapi";
version = "4.30.0";
pyproject = true;
src = fetchFromGitHub {
owner = "eternnoir";
repo = "pyTelegramBotAPI";
tag = version;
hash = "sha256-WFikKZxc9PjqcAcKrZIXaFO7XiUBAg8y60/UH2so4Vc=";
};
build-system = [ hatchling ];
optional-dependencies = {
json = [ ujson ];
PIL = [ pillow ];
redis = [ redis ];
aioredis = [ aioredis ];
aiohttp = [ aiohttp ];
fastapi = [ fastapi ];
uvicorn = [ uvicorn ];
psutil = [ psutil ];
coloredlogs = [ coloredlogs ];
watchdog = [ watchdog ];
};
checkInputs = [
pytestCheckHook
requests
]
++ optional-dependencies.watchdog
++ optional-dependencies.aiohttp;
pythonImportsCheck = [ "telebot" ];
meta = {
description = "Python implementation for the Telegram Bot API";
homepage = "https://github.com/eternnoir/pyTelegramBotAPI";
changelog = "https://github.com/eternnoir/pyTelegramBotAPI/releases/tag/${src.tag}";
license = lib.licenses.gpl2Only;
maintainers = with lib.maintainers; [ das_j ];
};
}