From 01a20633176204d89da07c550c4fa4cd7c7cf7c4 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 1 Jan 2024 23:39:38 +0100 Subject: 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. --- doc/languages-frameworks/python.section.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'doc') 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; { -- cgit 1.4.1