pythonPackages.python-telegram-bot: 10.1.0 -> 11.1.0

This commit is contained in:
Chris Ostrouchov 2018-10-25 14:13:59 -04:00 committed by Frederik Rietdijk
parent 1fa6e372b2
commit 9406b36e9d

View file

@ -1,12 +1,20 @@
{ stdenv, fetchPypi, buildPythonPackage, certifi, future, urllib3 }:
{ stdenv
, fetchPypi
, buildPythonPackage
, certifi
, future
, urllib3
, tornado
, pytest
}:
buildPythonPackage rec {
pname = "python-telegram-bot";
version = "10.1.0";
version = "11.1.0";
src = fetchPypi {
inherit pname version;
sha256 = "ca2f8a44ddef7271477e16f4986647fa90ef4df5b55a7953e53b9c9d2672f639";
sha256 = "cca4e32ebb8da7fdf35ab2fa2b3edd441211364819c5592fc253acdb7561ea5b";
};
prePatch = ''
@ -16,10 +24,14 @@ buildPythonPackage rec {
--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"
touch LICENSE.dual
'';
propagatedBuildInputs = [ certifi future urllib3 ];
checkInputs = [ pytest ];
propagatedBuildInputs = [ certifi future urllib3 tornado ];
# tests not included with release
doCheck = false;
meta = with stdenv.lib; {