docs/language-frameworks/python: update relaxDepsHook docs
This commit is contained in:
parent
3bfb20e638
commit
58ca021599
@ -1315,9 +1315,6 @@ we can do:
|
|||||||
|
|
||||||
```nix
|
```nix
|
||||||
{
|
{
|
||||||
nativeBuildInputs = [
|
|
||||||
pythonRelaxDepsHook
|
|
||||||
];
|
|
||||||
pythonRelaxDeps = [
|
pythonRelaxDeps = [
|
||||||
"pkg1"
|
"pkg1"
|
||||||
"pkg3"
|
"pkg3"
|
||||||
@ -1340,7 +1337,6 @@ example:
|
|||||||
|
|
||||||
```nix
|
```nix
|
||||||
{
|
{
|
||||||
nativeBuildInputs = [ pythonRelaxDepsHook ];
|
|
||||||
pythonRelaxDeps = true;
|
pythonRelaxDeps = true;
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
@ -1362,8 +1358,11 @@ instead of a dev dependency).
|
|||||||
Keep in mind that while the examples above are done with `requirements.txt`,
|
Keep in mind that while the examples above are done with `requirements.txt`,
|
||||||
`pythonRelaxDepsHook` works by modifying the resulting wheel file, so it should
|
`pythonRelaxDepsHook` works by modifying the resulting wheel file, so it should
|
||||||
work with any of the [existing hooks](#setup-hooks).
|
work with any of the [existing hooks](#setup-hooks).
|
||||||
It indicates that `pythonRelaxDepsHook` has no effect on build time dependencies, such as in `build-system`.
|
|
||||||
If a package requires incompatible build time dependencies, they should be removed in `postPatch` with `substituteInPlace` or something similar.
|
The `pythonRelaxDepsHook` has no effect on build time dependencies, such as
|
||||||
|
those specified in `build-system`. If a package requires incompatible build
|
||||||
|
time dependencies, they should be removed in `postPatch` through
|
||||||
|
`substituteInPlace` or similar.
|
||||||
|
|
||||||
#### Using unittestCheckHook {#using-unittestcheckhook}
|
#### Using unittestCheckHook {#using-unittestcheckhook}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user