python3.pkgs.beets: allow to override passthru#467091
python3.pkgs.beets: allow to override passthru#467091doronbehar merged 2 commits intoNixOS:masterfrom
Conversation
aszlig
left a comment
There was a problem hiding this comment.
I think being able to override all attributes is generally a good thing.
I'm not so sure whether we want people to override use passthru for defining new plugin options, since I'd consider that to be internal.
What's the actual thing that motivated you to address this?
|
Thanks for the review :). |
See the example |
| # overriden. Until `finalAttrs` support reaches `buildPythonPackage`, there | ||
| # is no way to avoid this. |
There was a problem hiding this comment.
| # overriden. Until `finalAttrs` support reaches `buildPythonPackage`, there | |
| # is no way to avoid this. | |
| # overriden. Until `finalAttrs` support reaches `buildPythonPackage`, there | |
| # is no way to avoid this. | |
| # | |
| # See: https://github.com/NixOS/nixpkgs/issues/258246 |
Nice to have a link to the relevant issue here.
There was a problem hiding this comment.
Nice to have a link to the relevant issue here.
I agree!
9999years
left a comment
There was a problem hiding this comment.
Kind of rough usage here; probably worth a comment or a passthru.tests attribute. Still nice to be able to do this.
a351fed to
23b24be
Compare
I agree, your PR will make this UX better :). |
Previously, it required a `let in`: NixOS#467091
|
Bisect says that this caused infinite recursion eval failure (was python version failure before): |
|
Damn you are right. I'm sorry about that and I wish Python packages had a I'm open to implementing a workaround just for beets though. |
|
Just for reference, now with #271387 merged 🎉, and with the changes here: A much nicer override is possible, and is part of a new |
Tested with:
Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.Add a 👍 reaction to pull requests you find important.