diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2018-02-10 14:41:14 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-10 14:41:14 +0000 |
commit | e2d250351553adfec52b8ca91ab44fc5a6e00193 (patch) | |
tree | df46b12288d326c317b95f71721fa275cabb1530 /pkgs/development/python-modules | |
parent | a4db058e7b3b9db95ea851cc31c92ee842bd7ef9 (diff) | |
parent | 7a82c83c63e79b47dc6483d157d59f697874cb32 (diff) | |
download | nixlib-e2d250351553adfec52b8ca91ab44fc5a6e00193.tar nixlib-e2d250351553adfec52b8ca91ab44fc5a6e00193.tar.gz nixlib-e2d250351553adfec52b8ca91ab44fc5a6e00193.tar.bz2 nixlib-e2d250351553adfec52b8ca91ab44fc5a6e00193.tar.lz nixlib-e2d250351553adfec52b8ca91ab44fc5a6e00193.tar.xz nixlib-e2d250351553adfec52b8ca91ab44fc5a6e00193.tar.zst nixlib-e2d250351553adfec52b8ca91ab44fc5a6e00193.zip |
Merge pull request #34015 from veprbl/pytgbot
python-telegram-bot: init at 9.0.0
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r-- | pkgs/development/python-modules/python-telegram-bot/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/python-telegram-bot/default.nix b/pkgs/development/python-modules/python-telegram-bot/default.nix new file mode 100644 index 000000000000..d55472179101 --- /dev/null +++ b/pkgs/development/python-modules/python-telegram-bot/default.nix @@ -0,0 +1,31 @@ +{ stdenv, fetchPypi, buildPythonPackage, certifi, future, urllib3 }: + +buildPythonPackage rec { + pname = "python-telegram-bot"; + version = "9.0.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "0a5b4wfc6ms7kblynw2h3ygpww98kyz5n8iibqbdyykwx8xj7hzm"; + }; + + 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" + ''; + + propagatedBuildInputs = [ certifi future urllib3 ]; + + doCheck = false; + + meta = with stdenv.lib; { + description = "This library provides a pure Python interface for the Telegram Bot API."; + homepage = https://python-telegram-bot.org; + license = licenses.lgpl3; + maintainers = with maintainers; [ veprbl ]; + }; +} |