Skip to content

top-level/python-packages: add zip support to fetchPypi #26059

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

Closed
wants to merge 2 commits into from
Closed

top-level/python-packages: add zip support to fetchPypi #26059

wants to merge 2 commits into from

Conversation

mt-caret
Copy link
Contributor

Motivation for this change

Currently, fetchPypi only supports tar.gz source distributions. This commit adds support for zip source distribution which can be enabled by passing tgz = false; to fetchPypi. Tested with 3to2 and fonttools (both packages with new versions only available in zipped form).

@FRidh fetchPypi only supporting sha256 checksums seems weird, is there any reason for that?

Things done
  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

Sorry, something went wrong.

@mention-bot
Copy link

@mt-caret, thanks for your PR! By analyzing the history of the files in this pull request, we identified @FRidh to be a potential reviewer.

@FRidh
Copy link
Member

FRidh commented May 24, 2017

Because there are still older archives out there that use other extensions, like bz2, I suggest having an extension ? "tar.gz" instead.

@FRidh fetchPypi only supporting sha256 checksums seems weird, is there any reason for that?

Because that is what https://pypi.org/ offers. But restricting to that is not necessary though.

@mt-caret
Copy link
Contributor Author

mt-caret commented May 24, 2017

Fixed.

@FRidh
Copy link
Member

FRidh commented May 24, 2017

Thanks. I pushed 65477dc.

@FRidh FRidh closed this May 24, 2017
@mt-caret mt-caret mentioned this pull request May 25, 2017
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants