diff options
author | Frederik Rietdijk <fridh@fridh.nl> | 2016-08-16 09:47:13 +0200 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2016-08-16 09:47:13 +0200 |
commit | 888efed972d95e1f2bc31e4394ff841f0690d216 (patch) | |
tree | 35a264c73a49d101179062b25a9f18065c1f6d2d /doc/languages-frameworks/python.md | |
parent | 24ab0460a9cf63a91aa3681e6f6557c05b48bf33 (diff) |
Doc: fix python examples
Diffstat (limited to 'doc/languages-frameworks/python.md')
-rw-r--r-- | doc/languages-frameworks/python.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/languages-frameworks/python.md b/doc/languages-frameworks/python.md index bb1094e2b741b..434a9b156e787 100644 --- a/doc/languages-frameworks/python.md +++ b/doc/languages-frameworks/python.md @@ -566,7 +566,7 @@ running `nix-shell` with the following `shell.nix` with import <nixpkgs> {}; (python3.buildEnv.override { - extraLibs = with python3Packages; [ numpy requests ]; + extraLibs = with python3Packages; [ numpy requests2 ]; }).env will drop you into a shell where Python will have the @@ -605,7 +605,7 @@ attribute. The `shell.nix` file from the previous section can thus be also writt with import <nixpkgs> {}; - (python33.withPackages (ps: [ps.numpy ps.requests])).env + (python33.withPackages (ps: [ps.numpy ps.requests2])).env In contrast to `python.buildEnv`, `python.withPackages` does not support the more advanced options such as `ignoreCollisions = true` or `postBuild`. If you need them, you have to use `python.buildEnv`. |