From 919cbfa5dce9fc15d1b125dee2823311a24c60b8 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 9 Apr 2024 20:05:51 +0200 Subject: [PATCH] python312Packages.pytelegrambotapi: format with nixfmt --- .../pyTelegramBotAPI/default.nix | 86 +++++++------------ 1 file changed, 31 insertions(+), 55 deletions(-) diff --git a/pkgs/development/python-modules/pyTelegramBotAPI/default.nix b/pkgs/development/python-modules/pyTelegramBotAPI/default.nix index b66bcb405fde..90b623c35ef4 100644 --- a/pkgs/development/python-modules/pyTelegramBotAPI/default.nix +++ b/pkgs/development/python-modules/pyTelegramBotAPI/default.nix @@ -1,20 +1,21 @@ -{ lib -, aiohttp -, aioredis -, buildPythonPackage -, coloredlogs -, fastapi -, fetchFromGitHub -, hatchling -, pillow -, psutil -, pytestCheckHook -, pythonOlder -, redis -, requests -, ujson -, uvicorn -, watchdog +{ + lib, + aiohttp, + aioredis, + buildPythonPackage, + coloredlogs, + fastapi, + fetchFromGitHub, + hatchling, + pillow, + psutil, + pytestCheckHook, + pythonOlder, + redis, + requests, + ujson, + uvicorn, + watchdog, }: buildPythonPackage rec { @@ -31,52 +32,27 @@ buildPythonPackage rec { hash = "sha256-Asw6wpZs0FgsUYLVQ4u4qQgIFdvShcsN3XvgHn48cbI="; }; - build-system = [ - hatchling - ]; + build-system = [ hatchling ]; passthru.optional-dependencies = { - json = [ - ujson - ]; - PIL = [ - pillow - ]; - redis = [ - redis - ]; - aioredis = [ - aioredis - ]; - aiohttp = [ - aiohttp - ]; - fastapi = [ - fastapi - ]; - uvicorn = [ - uvicorn - ]; - psutil = [ - psutil - ]; - coloredlogs = [ - coloredlogs - ]; - watchdog = [ - watchdog - ]; + 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; + ] ++ passthru.optional-dependencies.watchdog ++ passthru.optional-dependencies.aiohttp; - pythonImportsCheck = [ - "telebot" - ]; + pythonImportsCheck = [ "telebot" ]; meta = with lib; { description = "Python implementation for the Telegram Bot API";