makeOverridablePythonPackage: simplify implementation and make compatible with <pkg>.overrideAttrs#267296
Conversation
<pkg>.overridePythonAttrs work after <pkg>.overrideAttrs<pkg>.overridePythonAttrs work after <pkg>.overrideAttrs
205c377 to
2cf1c3c
Compare
e16c5f0 to
ac74756
Compare
ac74756 to
971cac5
Compare
|
@ofborg build tests.overriding |
b2ebd09 to
7928373
Compare
7928373 to
40ad5e6
Compare
|
I rebased the feature branch and resolved the merge conflict. |
40ad5e6 to
13aafb0
Compare
01dff07 to
c027f25
Compare
<pkg>.overridePythonAttrs work after <pkg>.overrideAttrs<pkg>.overrideAttrs
c027f25 to
df82fae
Compare
|
Rebase and utilize PR #456848 ("tests.overriding: refactor and allow non-bool expected value"). |
e1001d7 to
303cf6f
Compare
Test with a pseudopackage python-package-stub. Modularize the transforming function and testing function.
Attach overridePythonAttrs by attribute set update instead of `stdenv.mkDerivation`'s `passthru`. Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk>
303cf6f to
898832f
Compare
Make it possible to mix overridePythonAttrs and overrideAttrs, i.e.
((<pkg>.overrideAttrs (_: { foo = "a"; })).overridePythonAttrs (_: { })).foo now works
Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk>
898832f to
ca6c090
Compare
|
I wonder if it's okay to backport this PR, especially after the It should fix |
1 similar comment
|
I wonder if it's okay to backport this PR, especially after the It should fix |
MattSturgeon
left a comment
There was a problem hiding this comment.
I wonder if it's okay to backport this PR
I believe this should be fine to backport. It doesn't do anything too crazy.
Diff LGTM.
|
Successfully created backport PR for |
Description of changes
This patch updates the
<pkg>.overrideAttrsinsidemakeOverridablePythonPackage(the function that adds<pkg>.overridePythonAttrs). If applied,<pkgs>.overridePythonAttrswill work after applying<pkg>.overrideAttrsto override a Python package built withbuildPythonPackageorbuildPythonApplication.This patch also adds corresponding test cases to
tests.overriding.Closes #267293.
Initial effort for #271387.
Cc: @FRidh
Things done
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/)