python312Packages.click-option-group: cleanup & skip failing test#391003
python312Packages.click-option-group: cleanup & skip failing test#391003GaetanLepage wants to merge 1 commit intoNixOS:masterfrom
Conversation
MattSturgeon
left a comment
There was a problem hiding this comment.
I'm not a huge fan of having fixes and cleanup together in the same commit, but the diff looks good overall. Thanks
| src = fetchFromGitHub { | ||
| owner = "click-contrib"; | ||
| repo = pname; | ||
| repo = "click-option-group"; |
There was a problem hiding this comment.
This change seems unnecessary, since the variable happens to be the same.
Re-using pname via rec is not like using finalAttrs.pname, which would change when overridden. Getting the binding via rec is effectively constant.
There was a problem hiding this comment.
Re-using pname in src.repo is discouraged AFAIK.
Hard-coding it is preferred as it prevents silent failures when the package is renamed.
There was a problem hiding this comment.
It is discouraged to inherit it from finalAttrs, since that could cause issues when overriding the pname attr.
I can't see how inheriting via rec would ever lead to silent errors; you would get a 404 and/or hash mismatch if the repo argument became invalid.
Either way, not a big deal.
|
You are right, I have split the changes in two separate commits. |
Things done
cc @mweinelt
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.