From 8e12c25a4f62bbb4dd86e2fce7443b33d66ec793 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 21 May 2024 04:50:19 +0000 Subject: [PATCH 1/3] python311Packages.python-telegram-bot: 21.1.1 -> 21.2 --- .../python-modules/python-telegram-bot/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/python-telegram-bot/default.nix b/pkgs/development/python-modules/python-telegram-bot/default.nix index a15e31941ecc..e826133e4ccc 100644 --- a/pkgs/development/python-modules/python-telegram-bot/default.nix +++ b/pkgs/development/python-modules/python-telegram-bot/default.nix @@ -21,7 +21,7 @@ buildPythonPackage rec { pname = "python-telegram-bot"; - version = "21.1.1"; + version = "21.2"; pyproject = true; disabled = pythonOlder "3.8"; @@ -30,7 +30,7 @@ buildPythonPackage rec { owner = "python-telegram-bot"; repo = "python-telegram-bot"; rev = "refs/tags/v${version}"; - hash = "sha256-BZrcYZxivrZIkHKqi+x9M4A9XE9dD//2PqzRwA3vuGU="; + hash = "sha256-l5twJbyZh30+pt9DsCpQRuSav8qYNGlIhQW0qY9BmO4="; }; nativeBuildInputs = [ From 18c46374da9d48b33173982d6682608aa62d4f6f Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 21 May 2024 08:36:28 +0200 Subject: [PATCH 2/3] python312Packages.python-telegram-bot: refactor --- .../python-modules/python-telegram-bot/default.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/python-telegram-bot/default.nix b/pkgs/development/python-modules/python-telegram-bot/default.nix index e826133e4ccc..627e36934156 100644 --- a/pkgs/development/python-modules/python-telegram-bot/default.nix +++ b/pkgs/development/python-modules/python-telegram-bot/default.nix @@ -15,7 +15,6 @@ , pythonOlder , pytz , setuptools -, wheel , tornado }: @@ -33,12 +32,11 @@ buildPythonPackage rec { hash = "sha256-l5twJbyZh30+pt9DsCpQRuSav8qYNGlIhQW0qY9BmO4="; }; - nativeBuildInputs = [ + build-system = [ setuptools - wheel ]; - propagatedBuildInputs = [ + dependencies = [ aiolimiter apscheduler cachetools From 7d37713f0b7ed82299c65cf748cef63b7e55a4c3 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 21 May 2024 08:36:51 +0200 Subject: [PATCH 3/3] python312Packages.python-telegram-bot: format with nixfmt --- .../python-telegram-bot/default.nix | 54 +++++++++---------- 1 file changed, 26 insertions(+), 28 deletions(-) diff --git a/pkgs/development/python-modules/python-telegram-bot/default.nix b/pkgs/development/python-modules/python-telegram-bot/default.nix index 627e36934156..8cd1dc5ec7ff 100644 --- a/pkgs/development/python-modules/python-telegram-bot/default.nix +++ b/pkgs/development/python-modules/python-telegram-bot/default.nix @@ -1,21 +1,22 @@ -{ lib -, aiolimiter -, apscheduler -, beautifulsoup4 -, buildPythonPackage -, cachetools -, cryptography -, fetchFromGitHub -, flaky -, httpx -, pytest-asyncio -, pytest-timeout -, pytest-xdist -, pytestCheckHook -, pythonOlder -, pytz -, setuptools -, tornado +{ + lib, + aiolimiter, + apscheduler, + beautifulsoup4, + buildPythonPackage, + cachetools, + cryptography, + fetchFromGitHub, + flaky, + httpx, + pytest-asyncio, + pytest-timeout, + pytest-xdist, + pytestCheckHook, + pythonOlder, + pytz, + setuptools, + tornado, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { hash = "sha256-l5twJbyZh30+pt9DsCpQRuSav8qYNGlIhQW0qY9BmO4="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ aiolimiter @@ -43,9 +42,7 @@ buildPythonPackage rec { cryptography httpx pytz - ] - ++ httpx.optional-dependencies.socks - ++ httpx.optional-dependencies.http2; + ] ++ httpx.optional-dependencies.socks ++ httpx.optional-dependencies.http2; nativeCheckInputs = [ beautifulsoup4 @@ -57,9 +54,7 @@ buildPythonPackage rec { tornado ]; - pythonImportsCheck = [ - "telegram" - ]; + pythonImportsCheck = [ "telegram" ]; disabledTests = [ # Tests require network access @@ -127,6 +122,9 @@ buildPythonPackage rec { homepage = "https://python-telegram-bot.org"; changelog = "https://github.com/python-telegram-bot/python-telegram-bot/blob/v${version}/CHANGES.rst"; license = licenses.lgpl3Only; - maintainers = with maintainers; [ veprbl pingiun ]; + maintainers = with maintainers; [ + veprbl + pingiun + ]; }; }