-
-
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
mitmproxy: convert to python3Packages #93701
Conversation
It is likely the module will break at times because dependencies cannot be met, which can be overridden as an application. In the past dependencies had to be overridden quite often, so I am a bit skeptical to this change. Not blocking it though. |
I see your point; actually, exactly this is what happened for Mitmproxy v5.2 which downgraded urwid. Guess we have to skip this version and wait for 5.2.1. Still, IMHO, its the better option to have a Python package here. |
I've updated mitmproxy to v5.2 since upstream introduced support for urwid v2.1.1. |
Well, then I take it you accept it that there may be periods of time it is not possible to have a functioning mitmproxy in Nixpkgs. |
There might be some quirks, yes. But this also holds true for other Python packages in Nixpkgs, doesn't it? |
@veehaitch that's correct. Due to how python can only import one version of a module, introducing many versions of a given dependency is not feasible, and will likely break some users depending on which packages are introduced. |
@jonringer I've been thinking about the fundamental "why?"s of this lately, because I realized that it's not as if even c allows you to "import" (link to) more than one version of a library at once. And we don't have this "one version" stipulation with Anyway as far as I'm concerned, this is something that you've removed from my todo list, @veehaitch. Though I think you might have got the patch's hash wrong (I get And this'll need a rebase so that it survives the big Otherwise WFM macos 10.14. 👍 |
Indeed, thanks! Done.
Done. Additionally, the derivation now runs all the tests except one. All tests pass on NixOS. Builds and works on macOS 10.15.6. |
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.
LGTM
https://github.com/NixOS/nixpkgs/pull/93701
2 packages built:
mitmproxy python37Packages.mitmproxy
Motivation for this change
For the scripting API of mitmproxy, it is useful to have it available as Python module:
mitmproxy v5.2 is already out but apparently it has issues with urwid 2.1: downgrade & pin urwid to 2.0.1 mitmproxy/mitmproxy#4086Things 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)