aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-telegram-bot
diff options
context:
space:
mode:
authorJelle Besseling <jelle@pingiun.com>2020-05-03 20:51:49 +0200
committerGitHub <noreply@github.com>2020-05-03 11:51:49 -0700
commit5b4994672317eb8b5b8d1c47196bddfb31cafda3 (patch)
tree09a4f0f8928ac45c88879e263965f56d77e07ed6 /pkgs/development/python-modules/python-telegram-bot
parent69ebdd78bedd1162a73d23010e404facd5f6c9ab (diff)
python3Packages.python-telegram-bot: 12.3.0 -> 12.7 (#86652)
* python3Packages.python-telegram-bot: 12.3.0 -> 12.7 * Update pkgs/development/python-modules/python-telegram-bot/default.nix Co-authored-by: Jon <jonringer@users.noreply.github.com> Co-authored-by: Dmitry Kalinkin <dmitry.kalinkin@gmail.com> Co-authored-by: Jon <jonringer@users.noreply.github.com>
Diffstat (limited to 'pkgs/development/python-modules/python-telegram-bot')
-rw-r--r--pkgs/development/python-modules/python-telegram-bot/default.nix22
1 files changed, 7 insertions, 15 deletions
diff --git a/pkgs/development/python-modules/python-telegram-bot/default.nix b/pkgs/development/python-modules/python-telegram-bot/default.nix
index 5b921e326678..28541372c5e4 100644
--- a/pkgs/development/python-modules/python-telegram-bot/default.nix
+++ b/pkgs/development/python-modules/python-telegram-bot/default.nix
@@ -2,6 +2,7 @@
, fetchPypi
, buildPythonPackage
, certifi
+, decorator
, future
, urllib3
, tornado
@@ -10,30 +11,21 @@
buildPythonPackage rec {
pname = "python-telegram-bot";
- version = "12.3.0";
+ version = "12.7";
src = fetchPypi {
inherit pname version;
- sha256 = "0yrg5342zz0hpf2pc85ffwx57msa6jpcmvvjfkzh8nh2lc98aq21";
+ sha256 = "1vwf4pgjrg9a6w51ds9wmzq31bmi3f7xs79gdzzfxfmqmy1hb2r1";
};
- prePatch = ''
- rm -rf telegram/vendor
- substituteInPlace telegram/utils/request.py \
- --replace "import telegram.vendor.ptb_urllib3.urllib3 as urllib3" "import urllib3 as urllib3" \
- --replace "import telegram.vendor.ptb_urllib3.urllib3.contrib.appengine as appengine" "import urllib3.contrib.appengine as appengine" \
- --replace "from telegram.vendor.ptb_urllib3.urllib3.connection import HTTPConnection" "from urllib3.connection import HTTPConnection" \
- --replace "from telegram.vendor.ptb_urllib3.urllib3.util.timeout import Timeout" "from urllib3.util.timeout import Timeout" \
- --replace "from telegram.vendor.ptb_urllib3.urllib3.fields import RequestField" "from urllib3.fields import RequestField"
-
- touch LICENSE.dual
- '';
-
checkInputs = [ pytest ];
- propagatedBuildInputs = [ certifi future urllib3 tornado ];
+ propagatedBuildInputs = [ certifi future urllib3 tornado decorator ];
+
+ pipInstallFlags = "--install-option '--with-upstream-urllib3'";
# tests not included with release
doCheck = false;
+ pythonImportsCheck = [ "telegram" ];
meta = with stdenv.lib; {
description = "This library provides a pure Python interface for the Telegram Bot API.";