about summary refs log tree commit diff
path: root/doc
diff options
context:
space:
mode:
authorMartin Weinelt <hexa@darmstadt.ccc.de>2024-01-01 23:39:38 +0100
committerMartin Weinelt <hexa@darmstadt.ccc.de>2024-01-01 23:39:38 +0100
commit01a20633176204d89da07c550c4fa4cd7c7cf7c4 (patch)
tree29bc9de8d3aa783817670836fadef153b35a8557 /doc
parent86d4d1ad174b228b0a56e639b20abc11bc30ac0b (diff)
doc/python: update buildPythonApplication example
It is fine to use `with` on the inputs, since that increases the
overall readability of the package.

Removes `wheel` from `nativeBuildInputs`, since it is a result of
cargo culting from an earlier setuptools example, that was wrong, and
it is not required, since it is provided by setuptools itself.
Diffstat (limited to 'doc')
-rw-r--r--doc/languages-frameworks/python.section.md11
1 files changed, 5 insertions, 6 deletions
diff --git a/doc/languages-frameworks/python.section.md b/doc/languages-frameworks/python.section.md
index c921756bc5113..0849aacdf1668 100644
--- a/doc/languages-frameworks/python.section.md
+++ b/doc/languages-frameworks/python.section.md
@@ -299,14 +299,13 @@ python3Packages.buildPythonApplication rec {
     hash  = "sha256-Pe229rT0aHwA98s+nTHQMEFKZPo/yw6sot8MivFDvAw=";
   };
 
-  nativeBuildInputs = [
-    python3Packages.setuptools
-    python3Packages.wheel
+  nativeBuildInputs = with python3Packages; [
+    setuptools
   ];
 
-  propagatedBuildInputs = [
-    python3Packages.tornado
-    python3Packages.python-daemon
+  propagatedBuildInputs = with python3Packages; [
+    tornado
+    python-daemon
   ];
 
   meta = with lib; {