summary refs log tree commit diff
path: root/doc
diff options
context:
space:
mode:
authorJonathan Ringer <jonringer117@gmail.com>2021-12-10 13:42:03 -0800
committerFrederik Rietdijk <freddyrietdijk@fridh.nl>2021-12-18 16:21:37 +0100
commit0b97e89049159eb3c74f3824d9dbcec046b6fb7f (patch)
treeb9acfb7a8002223b1a94a0aceb71ff6d7083b68a /doc
parentda4ef05326bce443effc500b33a97a2f370a54ff (diff)
downloadnixpkgs-0b97e89049159eb3c74f3824d9dbcec046b6fb7f.tar
nixpkgs-0b97e89049159eb3c74f3824d9dbcec046b6fb7f.tar.gz
nixpkgs-0b97e89049159eb3c74f3824d9dbcec046b6fb7f.tar.bz2
nixpkgs-0b97e89049159eb3c74f3824d9dbcec046b6fb7f.tar.lz
nixpkgs-0b97e89049159eb3c74f3824d9dbcec046b6fb7f.tar.xz
nixpkgs-0b97e89049159eb3c74f3824d9dbcec046b6fb7f.tar.zst
nixpkgs-0b97e89049159eb3c74f3824d9dbcec046b6fb7f.zip
doc/python: update buildPythonApplication example
It's recommended to consume the interpreter, not the package
set when being called from `all-packages.nix`
Diffstat (limited to 'doc')
-rw-r--r--doc/languages-frameworks/python.section.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/languages-frameworks/python.section.md b/doc/languages-frameworks/python.section.md
index 500f5fa41f3..4d70409a20c 100644
--- a/doc/languages-frameworks/python.section.md
+++ b/doc/languages-frameworks/python.section.md
@@ -995,18 +995,18 @@ called with `callPackage` and passed `python` or `pythonPackages` (possibly
 specifying an interpreter version), like this:
 
 ```nix
-{ lib, python3Packages }:
+{ lib, python3 }:
 
-python3Packages.buildPythonApplication rec {
+python3.pkgs.buildPythonApplication rec {
   pname = "luigi";
   version = "2.7.9";
 
-  src = python3Packages.fetchPypi {
+  src = python3.pkgs.fetchPypi {
     inherit pname version;
     sha256 = "035w8gqql36zlan0xjrzz9j4lh9hs0qrsgnbyw07qs7lnkvbdv9x";
   };
 
-  propagatedBuildInputs = with python3Packages; [ tornado_4 python-daemon ];
+  propagatedBuildInputs = with python3.pkgs; [ tornado python-daemon ];
 
   meta = with lib; {
     ...