From bbfc8ef1e641ae85feb7b3f2780451b7b016f91c Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Tue, 6 Aug 2024 20:14:38 +0200 Subject: [PATCH] docs/language-frameworks/python: specify how to add non-python runtime deps --- doc/languages-frameworks/python.section.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/languages-frameworks/python.section.md b/doc/languages-frameworks/python.section.md index 5a2e2de2edef..86dded0bae68 100644 --- a/doc/languages-frameworks/python.section.md +++ b/doc/languages-frameworks/python.section.md @@ -2016,6 +2016,9 @@ The following rules are desired to be respected: and using a `-` as delimiter. * Attribute names in `python-packages.nix` should be sorted alphanumerically to avoid merge conflicts and ease locating attributes. +* Non-python runtime dependencies should be added via explicit wrapping or + patching (using e.g. `substituteInPlace`), rather than through propagation via + `dependencies`/`propagatedBuildInputs`, to reduce clutter in `$PATH`. This list is useful for reviewers as well as for self-checking when submitting packages.