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
python27Packages.nevow: fix build, 0.14.2->0.14.3 #36944
Conversation
Success on x86_64-linux (full log) Attempted: python27Packages.nevow Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: python27Packages.nevow Partial log (click to expand)
|
may I ask what broke the tests? |
See this hydra log. The error occurs in setting up some javascript-related test case. Strangely though, nevow wasn't changed since 17.09, and the same expression builds in 17.09 without running any tests. So the broken test case may have been there for much longer. No idea what change triggered the tests to be run now. That's why I propose to disable them. |
It seems like
makes the tests work. |
Thank you, will do. Do we have a policy/criteria what should go in python-modules/ vs. python-packages.nix ? |
Nothing should go in python-packages.nix, just the |
Makes sense, looks kinda mixed right now. |
tests run fine now. moved to python-modules/ , plus a little cleanup and a minor version bump. |
{ stdenv, buildPythonPackage, fetchPypi, isPy3k, twisted }: | ||
|
||
buildPythonPackage rec { | ||
name = "nevow-${version}"; |
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.
Drop this line.
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 dropped that before but then the package name is capitalized (it's capitalized on pypi). If we do that, it will be called python2.7-Nevow. Do we want that?
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.
Yes we do. It isn't relevant anyway. The advantage of not having name
is that we can easily override the version.
trial formless nevow | ||
''; | ||
|
||
postInstall = "twistd --help > /dev/null"; |
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.
What is this line intended to do?
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.
dunno. was there before.
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.
Just drop it
fix tests, minor update, move to development/python-modules/
@dotlambda thank you for the review, done. |
@GrahamcOfBorg build python2.pkgs.nevow |
Success on x86_64-linux (full log) Attempted: python2.pkgs.nevow Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: python2.pkgs.nevow Partial log (click to expand)
|
Cherry-picked to release-18.03 in f2d24b8. |
@FRidh I accidentally cherry-picked to staging before. But I don't think this is a problem, is it? |
Motivation for this change
didn't build (error in test setup).
/cc ZHF #36453
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)