mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
a7a0a0aa6c
Diff: https://github.com/eternnoir/pyTelegramBotAPI/compare/refs/tags/4.8.0...4.9.0 Changelog: https://github.com/eternnoir/pyTelegramBotAPI/releases/tag/4.9.0
84 lines
1.4 KiB
Nix
84 lines
1.4 KiB
Nix
{ lib
|
|
, aiohttp
|
|
, aioredis
|
|
, buildPythonPackage
|
|
, coloredlogs
|
|
, fastapi
|
|
, fetchFromGitHub
|
|
, pillow
|
|
, psutil
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, redis
|
|
, requests
|
|
, ujson
|
|
, uvicorn
|
|
, watchdog
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pytelegrambotapi";
|
|
version = "4.9.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "eternnoir";
|
|
repo = "pyTelegramBotAPI";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-OaJMNJqb3h16aZJYma8eXTEkAEbb8NgpVEEHmGvpxQg=";
|
|
};
|
|
|
|
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
|
|
requests
|
|
] ++ passthru.optional-dependencies.watchdog
|
|
++ passthru.optional-dependencies.aiohttp;
|
|
|
|
pythonImportsCheck = [
|
|
"telebot"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python implementation for the Telegram Bot API";
|
|
homepage = "https://github.com/eternnoir/pyTelegramBotAPI";
|
|
changelog = "https://github.com/eternnoir/pyTelegramBotAPI/releases/tag/${version}";
|
|
license = licenses.gpl2Only;
|
|
maintainers = with maintainers; [ das_j ];
|
|
};
|
|
}
|