-
-
Notifications
You must be signed in to change notification settings - Fork 20
Add ratchet checks for __structuredAttrs and strictDeps
#203
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
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| use std::fmt; | ||
|
|
||
| use derive_new::new; | ||
| use indoc::writedoc; | ||
| use relative_path::RelativePathBuf; | ||
|
|
||
| #[derive(Clone, new)] | ||
| pub struct NewTopLevelPackageMustEnableStrictDeps { | ||
| #[new(into)] | ||
| package_name: String, | ||
| #[new(into)] | ||
| file: RelativePathBuf, | ||
| } | ||
|
|
||
| impl fmt::Display for NewTopLevelPackageMustEnableStrictDeps { | ||
| fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { | ||
| let Self { package_name, file } = self; | ||
| writedoc!( | ||
| f, | ||
| " | ||
| - Attribute `pkgs.{package_name}` is a new package with `strictDeps` unset or set to `false`. | ||
| Please enable `strictDeps = true;` in {file}. | ||
| ", | ||
| ) | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| use std::fmt; | ||
|
|
||
| use derive_new::new; | ||
| use indoc::writedoc; | ||
| use relative_path::RelativePathBuf; | ||
|
|
||
| #[derive(Clone, new)] | ||
| pub struct TopLevelPackageDisabledStrictDeps { | ||
| #[new(into)] | ||
| package_name: String, | ||
| #[new(into)] | ||
| file: RelativePathBuf, | ||
| } | ||
|
|
||
| impl fmt::Display for TopLevelPackageDisabledStrictDeps { | ||
| fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { | ||
| let Self { package_name, file } = self; | ||
| writedoc!( | ||
| f, | ||
| " | ||
| - Attribute `pkgs.{package_name}` previously evaluated with `strictDeps = true`, but now evaluates with `strictDeps = false`. | ||
| Please re-enable `strictDeps = true;` in {file}. | ||
| ", | ||
| ) | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| use std::fmt; | ||
|
|
||
| use derive_new::new; | ||
| use indoc::writedoc; | ||
| use relative_path::RelativePathBuf; | ||
|
|
||
| #[derive(Clone, new)] | ||
| pub struct NewTopLevelPackageMustEnableStructuredAttrs { | ||
| #[new(into)] | ||
| package_name: String, | ||
| #[new(into)] | ||
| file: RelativePathBuf, | ||
| } | ||
|
|
||
| impl fmt::Display for NewTopLevelPackageMustEnableStructuredAttrs { | ||
| fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { | ||
| let Self { package_name, file } = self; | ||
| writedoc!( | ||
| f, | ||
| " | ||
| - Attribute `pkgs.{package_name}` is a new package with `__structuredAttrs` unset or set to `false`. | ||
| Please enable `__structuredAttrs = true;` in {file}. | ||
| ", | ||
| ) | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| use std::fmt; | ||
|
|
||
| use derive_new::new; | ||
| use indoc::writedoc; | ||
| use relative_path::RelativePathBuf; | ||
|
|
||
| #[derive(Clone, new)] | ||
| pub struct TopLevelPackageDisabledStructuredAttrs { | ||
| #[new(into)] | ||
| package_name: String, | ||
| #[new(into)] | ||
| file: RelativePathBuf, | ||
| } | ||
|
|
||
| impl fmt::Display for TopLevelPackageDisabledStructuredAttrs { | ||
| fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { | ||
| let Self { package_name, file } = self; | ||
| writedoc!( | ||
| f, | ||
| " | ||
| - Attribute `pkgs.{package_name}` previously evaluated with `__structuredAttrs = true`, but now evaluates with `__structuredAttrs = false`. | ||
| Please re-enable `__structuredAttrs = true;` in {file}. | ||
| ", | ||
| ) | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| - Attribute `pkgs.foo` is a new package with `strictDeps` unset or set to `false`. | ||
| Please enable `strictDeps = true;` in pkgs/by-name/fo/foo/package.nix. | ||
| (https://github.com/NixOS/nixpkgs-vet/wiki/NPV-164) | ||
| This PR introduces additional instances of discouraged patterns as listed above. Please fix them before merging. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| import <test-nixpkgs> { root = ./.; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| # Test fixture |
1 change: 1 addition & 0 deletions
1
tests/strict-deps-new-false/main/pkgs/by-name/fo/foo/package.nix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| { someDrv }: someDrv // { strictDeps = false; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Validated successfully |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| import <test-nixpkgs> { root = ./.; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| # Test fixture |
1 change: 1 addition & 0 deletions
1
tests/strict-deps-new-true/main/pkgs/by-name/fo/foo/package.nix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| { someDrv }: someDrv // { strictDeps = true; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| - Attribute `pkgs.foo` is a new package with `strictDeps` unset or set to `false`. | ||
| Please enable `strictDeps = true;` in pkgs/by-name/fo/foo/package.nix. | ||
| (https://github.com/NixOS/nixpkgs-vet/wiki/NPV-164) | ||
| This PR introduces additional instances of discouraged patterns as listed above. Please fix them before merging. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| import <test-nixpkgs> { root = ./.; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| # Test fixture |
1 change: 1 addition & 0 deletions
1
tests/strict-deps-new-unset/main/pkgs/by-name/fo/foo/package.nix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| { someDrv }: removeAttrs someDrv [ "strictDeps" ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| import <test-nixpkgs> { root = ./.; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| # Test fixture |
1 change: 1 addition & 0 deletions
1
tests/strict-deps-regression/base/pkgs/by-name/fo/foo/package.nix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| { someDrv }: someDrv |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| - Attribute `pkgs.foo` previously evaluated with `strictDeps = true`, but now evaluates with `strictDeps = false`. | ||
| Please re-enable `strictDeps = true;` in pkgs/by-name/fo/foo/package.nix. | ||
| (https://github.com/NixOS/nixpkgs-vet/wiki/NPV-165) | ||
| This PR introduces additional instances of discouraged patterns as listed above. Please fix them before merging. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| import <test-nixpkgs> { root = ./.; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| # Test fixture |
1 change: 1 addition & 0 deletions
1
tests/strict-deps-regression/main/pkgs/by-name/fo/foo/package.nix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| { someDrv }: someDrv // { strictDeps = false; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| - Attribute `pkgs.foo` is a new package with `__structuredAttrs` unset or set to `false`. | ||
| Please enable `__structuredAttrs = true;` in pkgs/by-name/fo/foo/package.nix. | ||
| (https://github.com/NixOS/nixpkgs-vet/wiki/NPV-166) | ||
| This PR introduces additional instances of discouraged patterns as listed above. Please fix them before merging. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| import <test-nixpkgs> { root = ./.; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| # Test fixture |
1 change: 1 addition & 0 deletions
1
tests/structured-attrs-new-false/main/pkgs/by-name/fo/foo/package.nix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| { someDrv }: someDrv // { __structuredAttrs = false; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Validated successfully |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| import <test-nixpkgs> { root = ./.; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| # Test fixture |
1 change: 1 addition & 0 deletions
1
tests/structured-attrs-new-true/main/pkgs/by-name/fo/foo/package.nix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| { someDrv }: someDrv // { __structuredAttrs = true; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| - Attribute `pkgs.foo` is a new package with `__structuredAttrs` unset or set to `false`. | ||
| Please enable `__structuredAttrs = true;` in pkgs/by-name/fo/foo/package.nix. | ||
| (https://github.com/NixOS/nixpkgs-vet/wiki/NPV-166) | ||
| This PR introduces additional instances of discouraged patterns as listed above. Please fix them before merging. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| import <test-nixpkgs> { root = ./.; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| # Test fixture |
1 change: 1 addition & 0 deletions
1
tests/structured-attrs-new-unset/main/pkgs/by-name/fo/foo/package.nix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| { someDrv }: removeAttrs someDrv [ "__structuredAttrs" ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| import <test-nixpkgs> { root = ./.; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| # Test fixture |
1 change: 1 addition & 0 deletions
1
tests/structured-attrs-regression/base/pkgs/by-name/fo/foo/package.nix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| { someDrv }: someDrv |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| - Attribute `pkgs.foo` previously evaluated with `__structuredAttrs = true`, but now evaluates with `__structuredAttrs = false`. | ||
| Please re-enable `__structuredAttrs = true;` in pkgs/by-name/fo/foo/package.nix. | ||
| (https://github.com/NixOS/nixpkgs-vet/wiki/NPV-167) | ||
| This PR introduces additional instances of discouraged patterns as listed above. Please fix them before merging. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| import <test-nixpkgs> { root = ./.; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| # Test fixture |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
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.
I just encountered this CI message here:
https://github.com/NixOS/nixpkgs/actions/runs/24303117878/job/70959851952
The PR adds something similar to the following:
to
pkgs/by-name/op/optiland/package.nix.I am not sure how to set
__structuredAttrsexplicitly there. Could anyone here give a hand please? Maybe the check should be modified a bit to exclude such expressions?Uh oh!
There was an error while loading. Please reload this page.
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.
Does
toPythonApplicationimplement__structuredAttrs? I would start there, if it doesn't, it would be best to make a pr.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.
In this case wouldn't it be enough to set
__structuredAttrs = true;on the basepython3Packages.optilandpackage?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.
Well indeed it worked. I'm surprised though - I remember I noticed a while ago that Python packages are built with structuredAttrs enabled by default, as I always saw:
In the build logs. However I can't reproduce it now.
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.
Now that you mention it... yes, that is indeed strange. I don't have time right now but I'll have to look into that.