diff options
Diffstat (limited to 'pkgs/development/python-modules/python-telegram-bot/default.nix')
-rw-r--r-- | pkgs/development/python-modules/python-telegram-bot/default.nix | 62 |
1 files changed, 29 insertions, 33 deletions
diff --git a/pkgs/development/python-modules/python-telegram-bot/default.nix b/pkgs/development/python-modules/python-telegram-bot/default.nix index adb2fc81c9775..8cd1dc5ec7ffc 100644 --- a/pkgs/development/python-modules/python-telegram-bot/default.nix +++ b/pkgs/development/python-modules/python-telegram-bot/default.nix @@ -1,27 +1,27 @@ -{ lib -, aiolimiter -, apscheduler -, beautifulsoup4 -, buildPythonPackage -, cachetools -, cryptography -, fetchFromGitHub -, flaky -, httpx -, pytest-asyncio -, pytest-timeout -, pytest-xdist -, pytestCheckHook -, pythonOlder -, pytz -, setuptools -, wheel -, tornado +{ + lib, + aiolimiter, + apscheduler, + beautifulsoup4, + buildPythonPackage, + cachetools, + cryptography, + fetchFromGitHub, + flaky, + httpx, + pytest-asyncio, + pytest-timeout, + pytest-xdist, + pytestCheckHook, + pythonOlder, + pytz, + setuptools, + tornado, }: buildPythonPackage rec { pname = "python-telegram-bot"; - version = "21.1"; + version = "21.2"; pyproject = true; disabled = pythonOlder "3.8"; @@ -30,24 +30,19 @@ buildPythonPackage rec { owner = "python-telegram-bot"; repo = "python-telegram-bot"; rev = "refs/tags/v${version}"; - hash = "sha256-s5C3f17VP5ooH78/4JQMkzuV1byi7rFPTmVr3lZliFc="; + hash = "sha256-l5twJbyZh30+pt9DsCpQRuSav8qYNGlIhQW0qY9BmO4="; }; - nativeBuildInputs = [ - setuptools - wheel - ]; + build-system = [ setuptools ]; - propagatedBuildInputs = [ + dependencies = [ aiolimiter apscheduler cachetools cryptography httpx pytz - ] - ++ httpx.optional-dependencies.socks - ++ httpx.optional-dependencies.http2; + ] ++ httpx.optional-dependencies.socks ++ httpx.optional-dependencies.http2; nativeCheckInputs = [ beautifulsoup4 @@ -59,9 +54,7 @@ buildPythonPackage rec { tornado ]; - pythonImportsCheck = [ - "telegram" - ]; + pythonImportsCheck = [ "telegram" ]; disabledTests = [ # Tests require network access @@ -129,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 + ]; }; } |