diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2022-05-23 00:02:36 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-23 00:02:36 +0000 |
commit | ba5122823c6f9304612d1aea967fb00c83bf869f (patch) | |
tree | f113b677394edf6d0a606c46146102ee3cf10d06 /doc | |
parent | 107b6041bc98bd60040bf9305df2e9cdfd71c255 (diff) | |
parent | bc38fcac7d0fd9aba0af3b8ae897ca7ff6b09383 (diff) | |
download | nixlib-ba5122823c6f9304612d1aea967fb00c83bf869f.tar nixlib-ba5122823c6f9304612d1aea967fb00c83bf869f.tar.gz nixlib-ba5122823c6f9304612d1aea967fb00c83bf869f.tar.bz2 nixlib-ba5122823c6f9304612d1aea967fb00c83bf869f.tar.lz nixlib-ba5122823c6f9304612d1aea967fb00c83bf869f.tar.xz nixlib-ba5122823c6f9304612d1aea967fb00c83bf869f.tar.zst nixlib-ba5122823c6f9304612d1aea967fb00c83bf869f.zip |
Merge master into staging-next
Diffstat (limited to 'doc')
-rw-r--r-- | doc/languages-frameworks/python.section.md | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/languages-frameworks/python.section.md b/doc/languages-frameworks/python.section.md index fe28f94c069d..9cb9d2ba7bfd 100644 --- a/doc/languages-frameworks/python.section.md +++ b/doc/languages-frameworks/python.section.md @@ -982,12 +982,13 @@ in python.withPackages(ps: [ps.blaze])).env #### Optional extra dependencies Some packages define optional dependencies for additional features. With -`setuptools` this is called `extras_require` and `flit` calls it `extras-require`. A +`setuptools` this is called `extras_require` and `flit` calls it +`extras-require`, while PEP 621 calls these `optional-dependencies`. A method for supporting this is by declaring the extras of a package in its `passthru`, e.g. in case of the package `dask` ```nix -passthru.extras-require = { +passthru.optional-dependencies = { complete = [ distributed ]; }; ``` @@ -997,7 +998,7 @@ and letting the package requiring the extra add the list to its dependencies ```nix propagatedBuildInputs = [ ... -] ++ dask.extras-require.complete; +] ++ dask.optional-dependencies.complete; ``` Note this method is preferred over adding parameters to builders, as that can |