Merge pull request #86668 from veprbl/pr/ptb_fixes

python3Packages.python-telegram-bot: fix --with-upstream-urllib3
This commit is contained in:
Dmitry Kalinkin 2020-05-03 17:46:08 -04:00 committed by GitHub
commit e43ac9eeb2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,11 +7,13 @@
, urllib3
, tornado
, pytest
, isPy3k
}:
buildPythonPackage rec {
pname = "python-telegram-bot";
version = "12.7";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
@ -21,7 +23,11 @@ buildPythonPackage rec {
checkInputs = [ pytest ];
propagatedBuildInputs = [ certifi future urllib3 tornado decorator ];
pipInstallFlags = "--install-option '--with-upstream-urllib3'";
# --with-upstream-urllib3 is not working properly
postPatch = ''
rm -rf telegram/vendor
'';
setupPyGlobalFlags = "--with-upstream-urllib3";
# tests not included with release
doCheck = false;