-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
pythonPackages.pwntools: fix build #34537
Conversation
, pyelftools, pypandoc, pyserial, dateutil | ||
, requests, tox, pandoc, unicorn, intervaltree }: | ||
, pyelftools, pyserial, dateutil | ||
, requests, tox, unicorn, intervaltree }: | ||
|
||
buildPythonPackage rec { | ||
version = "3.11.0"; |
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.
Please get rid of the name
in the pwntools
derivation.
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.
Ok, I thought it was mandatory, apparently not :P
|
||
disabled = isPy3k; | ||
doCheck = false; # no setuptools tests for the package | ||
|
||
# Can be removed when 3.12.0 is released | ||
patches = [ ./remove-pypandoc.patch ]; |
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.
Better use fetchPatch
with https://github.com/Gallopsled/pwntools/pull/1098.patch.
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.
Thanks, I didn't realize it existed.
pypandoc is broken (it does not work properly with pandoc 2), so we remove the dependency as it was only used for generating PyPI docs. The patch will be included upstream in the next version, so it should be removed next time this package is updated.
e1f6df7
to
d834ae3
Compare
@GrahamcOfBorg build python2.pkgs.pwntools |
Success on x86_64-linux (full log) Partial log (click to expand)
|
Success on aarch64-linux (full log) Partial log (click to expand)
|
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.
Regarding pypandoc, I think we should first open an upstream issue or, even better, a PR and see if they are willing to fix this. Maybe @bennofs can do that.
Motivation for this change
pypandoc is broken (it does not work properly with pandoc 2), so we
remove the dependency as it was only used for generating PyPI docs.
The patch will be included upstream in the next version, so it should
be removed next time this package is updated.
I'm not sure what should be done about pypandoc itself. It doesn't look like it will get pandoc 2 support, and it still has another package depending on it. Mark as broken?
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)