python312Packages.pytelegrambotapi: format with nixfmt

This commit is contained in:
Fabian Affolter 2024-04-09 20:05:51 +02:00
parent b87dadf030
commit 919cbfa5dc
1 changed files with 31 additions and 55 deletions

View File

@ -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";