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
Add checkPhase to pythonPackages.astropy and several other related packages #65295
Conversation
@GrahamcOfBorg build python3Packages.astropy |
72f2166
to
64d8dad
Compare
Thank you for adding testing! |
src = fetchPypi { | ||
inherit pname version; | ||
sha256 = "0zw3xp2rfc6h2v569iqsyvzhfnzp7bfjb7jrj61is1hrqw1cqjrb"; | ||
}; | ||
|
||
# Fix tests using conftest.py from HEAD in the upstream GitHub | ||
# repository. | ||
patches = [ ./conftest.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.
It's probably better to use fetchpatch
and extract the .patch
from the actual PR (or just commit) upstream that actually fixed the issue. See other uses of fetchpatch
- this is a common pattern.
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.
This is what I did for other packages, but for this one several commits are needed. So rather than fetching multiple commits, I created a single patch from these.
Minor comments, but all works for me & Good work! |
fdfe50b
to
200f3c2
Compare
@GrahamcOfBorg build python3Packages.astroquery python3Packages.pyregion python3Packages.aplpy python3Packages.radio_beam python3Packages.spectral-cube python3Packages.astropy python3Packages.pytest-arraydiff |
Motivation for this change
Add a
checkPhase
inpythonPackages.astropy
and several other related packages.Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)