Merge pull request #86668 from veprbl/pr/ptb_fixes
python3Packages.python-telegram-bot: fix --with-upstream-urllib3
This commit is contained in:
commit
e43ac9eeb2
@ -7,11 +7,13 @@
|
|||||||
, urllib3
|
, urllib3
|
||||||
, tornado
|
, tornado
|
||||||
, pytest
|
, pytest
|
||||||
|
, isPy3k
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "python-telegram-bot";
|
pname = "python-telegram-bot";
|
||||||
version = "12.7";
|
version = "12.7";
|
||||||
|
disabled = !isPy3k;
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
@ -21,7 +23,11 @@ buildPythonPackage rec {
|
|||||||
checkInputs = [ pytest ];
|
checkInputs = [ pytest ];
|
||||||
propagatedBuildInputs = [ certifi future urllib3 tornado decorator ];
|
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
|
# tests not included with release
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user