python3Packages.python-telegram-bot: set --with-upstream-urllib3 properly, add workaround

This commit is contained in:
Dmitry Kalinkin 2020-05-03 15:27:29 -04:00
parent 5cb3501a37
commit cc97e9d7f0
No known key found for this signature in database
GPG Key ID: 5157B3EC8B2CA333

View File

@ -23,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;