Python: Add overrideAttrs attribute aliasing overridePythonAttrs#82772
Python: Add overrideAttrs attribute aliasing overridePythonAttrs#82772adisbladis wants to merge 2 commits intoNixOS:masterfrom
Conversation
This will make lib.makeOverridable use overridePythonAttrs by default.
|
@FRidh What kind of tests do you have in mind? |
|
Testing that |
8089e70 to
4e3f282
Compare
|
@FRidh I added a test. Since it's not actually building anything but only asserts attributes I made a new type of test. |
4e3f282 to
d117f06
Compare
|
@GrahamcOfBorg build python2.tests python3.tests python38.tests |
|
@GrahamcOfBorg build pypy2.tests pypy3.tests |
|
Let's wait a bit with merging this. |
|
@FRidh yiu don’t think this needs an RFC any more? |
|
Right, I wrote that. I do think it is best we standardize interfaces like these and I see you asked matthewbauer at the time to help with it. Let's write a small RFC and see where that takes us. |
|
RFC proposal #46842 (comment) |
|
Not sure about this, because we already have a bunch of override mechanisms which all work slightly differently. And by doing this it gets even more complex because it mixes ones name with anothers behavior. But then again, python packages accept pretty much all arguments of |
|
Closing, see NixOS/rfcs#67. |
Motivation for this change
This will make lib.makeOverridable use overridePythonAttrs by default.
Overriding Python packages has some surprising properties unless you use
overridePythonAttrsand it can be incredibly frustrating to try and find out why that is.Things done
sandboxinnix.confon non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"./result/bin/)nix path-info -Sbefore and after)