2024-04-21 15:54:59 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aiohttp,
|
|
|
|
aioredis,
|
|
|
|
buildPythonPackage,
|
|
|
|
coloredlogs,
|
|
|
|
fastapi,
|
|
|
|
fetchFromGitHub,
|
|
|
|
hatchling,
|
|
|
|
pillow,
|
|
|
|
psutil,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
redis,
|
|
|
|
requests,
|
|
|
|
ujson,
|
|
|
|
uvicorn,
|
|
|
|
watchdog,
|
2022-04-27 09:35:20 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2023-02-02 18:25:31 +00:00
|
|
|
pname = "pytelegrambotapi";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "4.18.0";
|
2024-02-29 20:09:43 +00:00
|
|
|
pyproject = true;
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "eternnoir";
|
|
|
|
repo = "pyTelegramBotAPI";
|
|
|
|
rev = "refs/tags/${version}";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-MlKLLLoEbB+ju+ewYDSEUCLVpCt+MsRKzTDVDuxDr8I=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
build-system = [ hatchling ];
|
2024-02-29 20:09:43 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
passthru.optional-dependencies = {
|
2024-04-21 15:54:59 +00:00
|
|
|
json = [ ujson ];
|
|
|
|
PIL = [ pillow ];
|
|
|
|
redis = [ redis ];
|
|
|
|
aioredis = [ aioredis ];
|
|
|
|
aiohttp = [ aiohttp ];
|
|
|
|
fastapi = [ fastapi ];
|
|
|
|
uvicorn = [ uvicorn ];
|
|
|
|
psutil = [ psutil ];
|
|
|
|
coloredlogs = [ coloredlogs ];
|
|
|
|
watchdog = [ watchdog ];
|
2023-02-02 18:25:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
2022-04-27 09:35:20 +00:00
|
|
|
requests
|
2024-04-21 15:54:59 +00:00
|
|
|
] ++ passthru.optional-dependencies.watchdog ++ passthru.optional-dependencies.aiohttp;
|
2022-04-27 09:35:20 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
pythonImportsCheck = [ "telebot" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2023-02-02 18:25:31 +00:00
|
|
|
description = "Python implementation for the Telegram Bot API";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/eternnoir/pyTelegramBotAPI";
|
2023-02-02 18:25:31 +00:00
|
|
|
changelog = "https://github.com/eternnoir/pyTelegramBotAPI/releases/tag/${version}";
|
2022-04-27 09:35:20 +00:00
|
|
|
license = licenses.gpl2Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ das_j ];
|
|
|
|
};
|
|
|
|
}
|