2022-04-27 09:35:20 +00:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
2023-02-02 18:25:31 +00:00
|
|
|
, aioredis
|
|
|
|
, buildPythonPackage
|
|
|
|
, coloredlogs
|
2022-12-02 08:20:57 +00:00
|
|
|
, fastapi
|
2023-02-02 18:25:31 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, pillow
|
|
|
|
, psutil
|
|
|
|
, pytestCheckHook
|
2022-04-27 09:35:20 +00:00
|
|
|
, pythonOlder
|
2023-02-02 18:25:31 +00:00
|
|
|
, 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";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "4.12.0";
|
2022-04-27 09:35:20 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
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}";
|
2023-05-24 13:37:59 +00:00
|
|
|
hash = "sha256-cW9IQy4D2iaoQ6oHQ07f27YQR7q9DBv2JkoukUtPBRQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
passthru.optional-dependencies = {
|
|
|
|
json = [
|
|
|
|
ujson
|
|
|
|
];
|
|
|
|
PIL = [
|
|
|
|
pillow
|
|
|
|
];
|
|
|
|
redis = [
|
|
|
|
redis
|
|
|
|
];
|
|
|
|
aioredis = [
|
|
|
|
aioredis
|
|
|
|
];
|
|
|
|
aiohttp = [
|
|
|
|
aiohttp
|
|
|
|
];
|
|
|
|
fastapi = [
|
|
|
|
fastapi
|
|
|
|
];
|
|
|
|
uvicorn = [
|
|
|
|
uvicorn
|
|
|
|
];
|
|
|
|
psutil = [
|
|
|
|
psutil
|
|
|
|
];
|
|
|
|
coloredlogs = [
|
|
|
|
coloredlogs
|
|
|
|
];
|
|
|
|
watchdog = [
|
|
|
|
watchdog
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
2022-04-27 09:35:20 +00:00
|
|
|
requests
|
2023-02-02 18:25:31 +00:00
|
|
|
] ++ passthru.optional-dependencies.watchdog
|
|
|
|
++ passthru.optional-dependencies.aiohttp;
|
2022-04-27 09:35:20 +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 ];
|
|
|
|
};
|
|
|
|
}
|