-
-
Notifications
You must be signed in to change notification settings - Fork 453
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
README.md: be more specific withDefaults application order #1877
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -142,7 +142,7 @@ The _poetry2nix_ public API consists of the following attributes: | |
- [mkPoetryScriptsPackage](#mkpoetryscriptspackage): Creates a package containing the scripts from `tool.poetry.scripts` of the `pyproject.toml`. | ||
- [mkPoetryEditablePackage](#mkpoetryeditablepackage): Creates a package containing editable sources. Changes in the specified paths will be reflected in an interactive nix-shell session without the need to restart it. | ||
- [defaultPoetryOverrides](#defaultpoetryoverrides): A set of bundled overrides fixing problems with Python packages. | ||
- [overrides.withDefaults](#overrideswithdefaults): A convenience function for specifying overrides on top of the defaults. | ||
- [overrides.withDefaults](#overrideswithdefaults): A convenience function for specifying overrides on top of the defaults (it applies user overrides and then applies defaults after). | ||
- [overrides.withoutDefaults](#overrideswithoutdefaults): A convenience function for specifying overrides without defaults. | ||
- [cleanPythonSources](#cleanpythonsources): A function to create a source filter for python projects. | ||
|
||
|
@@ -592,6 +592,15 @@ poetry2nix.mkPoetryApplication { | |
} | ||
``` | ||
|
||
Please remember that `withDefaults` function, applies user overrides first, and than applies `defaults`. If you want to change package | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Missing the
Then instead of than.
Missing a. |
||
that already is overriden by `defaults` you may need to do | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you rewrite it like this?
|
||
``` | ||
overrides = [ poetry2nix.defaultPoetryOverrides (self: super: { | ||
# ... package overrides here ... | ||
}) ]; | ||
``` | ||
which put your changes on top of defaults. | ||
|
||
**Q.** I'm experiencing one of the following errors, what do I do? | ||
|
||
- ModuleNotFoundError: No module named 'setuptools' | ||
|
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.
"it applies user overrides first and then applies
defaults
"