Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.4 kB · 83 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384{ lib, aiohttp, aioredis, buildPythonPackage, coloredlogs, fastapi, fetchFromGitHub, pillow, psutil, pytestCheckHook, pythonOlder, redis, requests, ujson, uvicorn, watchdog}:
buildPythonPackage rec { pname = "pytelegrambotapi"; version = "4.14.1"; format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub { owner = "eternnoir"; repo = "pyTelegramBotAPI"; rev = "refs/tags/${version}"; hash = "sha256-p31JRojOwoWQZE1w6UXEja0UvloMDbtKw75HHMUzgFU="; };
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 ]; };}