mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 19:51:17 +00:00
Merge pull request #34015 from veprbl/pytgbot
python-telegram-bot: init at 9.0.0
This commit is contained in:
commit
e2d2503515
|
@ -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 ];
|
||||
};
|
||||
}
|
|
@ -21521,6 +21521,8 @@ EOF
|
|||
};
|
||||
};
|
||||
|
||||
python-telegram-bot = callPackage ../development/python-modules/python-telegram-bot { };
|
||||
|
||||
irc = buildPythonPackage rec {
|
||||
name = "irc-${version}";
|
||||
version = "14.2.2";
|
||||
|
|
Loading…
Reference in a new issue