Merge pull request #244909 from sikmir/aiogram

python3Packages.aiogram: init at 2.25.1

authored by Sandro and committed by GitHub 5ab57414 5ee9f85c

+109
+65
pkgs/development/python-modules/aiogram/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + , pythonOlder 5 + , pytestCheckHook 6 + , aiohttp 7 + , aiohttp-socks 8 + , aioredis 9 + , aresponses 10 + , babel 11 + , certifi 12 + , magic-filter 13 + , pytest-asyncio 14 + , pytest-lazy-fixture 15 + , redis 16 + }: 17 + 18 + buildPythonPackage rec { 19 + pname = "aiogram"; 20 + version = "2.25.1"; 21 + format = "setuptools"; 22 + 23 + disabled = pythonOlder "3.7"; 24 + 25 + src = fetchFromGitHub { 26 + owner = "aiogram"; 27 + repo = "aiogram"; 28 + rev = "v${version}"; 29 + hash = "sha256-g8nuvna7DpXElvjBehnGKHUsrf+nyQcoKNnyR59RALo="; 30 + }; 31 + 32 + postPatch = '' 33 + substituteInPlace setup.py \ 34 + --replace "aiohttp>=3.8.0,<3.9.0" "aiohttp" \ 35 + --replace "Babel>=2.9.1,<2.10.0" "Babel" \ 36 + --replace "magic-filter>=1.0.9" "magic-filter" 37 + ''; 38 + 39 + propagatedBuildInputs = [ 40 + aiohttp 41 + babel 42 + certifi 43 + magic-filter 44 + ]; 45 + 46 + nativeCheckInputs = [ 47 + aiohttp-socks 48 + aioredis 49 + aresponses 50 + pytest-asyncio 51 + pytest-lazy-fixture 52 + pytestCheckHook 53 + redis 54 + ]; 55 + 56 + pythonImportsCheck = [ "aiogram" ]; 57 + 58 + meta = with lib; { 59 + description = "Modern and fully asynchronous framework for Telegram Bot API"; 60 + homepage = "https://github.com/aiogram/aiogram"; 61 + changelog = "https://github.com/aiogram/aiogram/releases/tag/v${version}"; 62 + license = licenses.mit; 63 + maintainers = with maintainers; [ sikmir ]; 64 + }; 65 + }
+40
pkgs/development/python-modules/magic-filter/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + , pythonOlder 5 + , pytestCheckHook 6 + , hatchling 7 + }: 8 + 9 + buildPythonPackage rec { 10 + pname = "magic-filter"; 11 + version = "1.0.10"; 12 + format = "pyproject"; 13 + 14 + disabled = pythonOlder "3.7"; 15 + 16 + src = fetchFromGitHub { 17 + owner = "aiogram"; 18 + repo = "magic-filter"; 19 + rev = "v${version}"; 20 + hash = "sha256-mHqq/ci8uMACNutwmxKX1nrl3nTSnSyU2x1VxzWxqzM="; 21 + }; 22 + 23 + nativeBuildInputs = [ 24 + hatchling 25 + ]; 26 + 27 + nativeCheckInputs = [ 28 + pytestCheckHook 29 + ]; 30 + 31 + pythonImportsCheck = [ "magic_filter" ]; 32 + 33 + meta = with lib; { 34 + description = "Magic filter based on dynamic attribute getter"; 35 + homepage = "https://github.com/aiogram/magic-filter"; 36 + changelog = "https://github.com/aiogram/magic-filter/releases/tag/v${version}"; 37 + license = licenses.mit; 38 + maintainers = with maintainers; [ sikmir ]; 39 + }; 40 + }
+4
pkgs/top-level/python-packages.nix
··· 194 194 195 195 aiogithubapi = callPackage ../development/python-modules/aiogithubapi { }; 196 196 197 + aiogram = callPackage ../development/python-modules/aiogram { }; 198 + 197 199 aioharmony = callPackage ../development/python-modules/aioharmony { }; 198 200 199 201 aiohomekit = callPackage ../development/python-modules/aiohomekit { }; ··· 6182 6184 magic = callPackage ../development/python-modules/magic { }; 6183 6185 6184 6186 magicgui = callPackage ../development/python-modules/magicgui { }; 6187 + 6188 + magic-filter = callPackage ../development/python-modules/magic-filter { }; 6185 6189 6186 6190 magic-wormhole = callPackage ../development/python-modules/magic-wormhole { }; 6187 6191