-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
python-telegram-bot: fix vendored urllib patches #78434
python-telegram-bot: fix vendored urllib patches #78434
Conversation
--replace "from telegram.vendor.ptb_urllib3.urllib3.util.timeout import Timeout" "from urllib3.util.timeout import Timeout" \ | ||
--replace "from telegram.vendor.ptb_urllib3.urllib3.fields import RequestField" "from urllib3.fields import RequestField" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like this should be upstreamed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An issue at the upstream repository already exists: python-telegram-bot/python-telegram-bot#1583
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
... hasn't seen any progress in 4 months... concerning :(
whats the motivation of this? I'm assuming some use case is broken? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
otherwise, the diff LGTM
[4 built, 1 copied (0.2 MiB), 0.2 MiB DL]
https://github.com/NixOS/nixpkgs/pull/78434
3 package built
python27Packages.python-telegram-bot python37Packages.python-telegram-bot python38Packages.python-telegram-bot
Would like to see upstream support in maintaining their package.
The current package is broken, because the import of the vendored package fails. I'm currently looking at the upstream issue to see if I can fix it, but in the mean time this PR should be merged so the nixos package is unbroken |
@GrahamcOfBorg build python27Packages.python-telegram-bot python37Packages.python-telegram-bot python38Packages.python-telegram-bot |
Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)Previously using the package would result in an
ImportError
, because one of the vendored urllib3 imports was not replaced.