@@ -576,7 +576,7 @@ specified packages in its path.
576576#### python.withPackages function
577577
578578The `python.withPackages` function provides a simpler interface to the `python.buildEnv` functionality.
579−It takes a function as an argument that is passed the set of python packages and returns the list
579+It takes a function as an argument that is passed the set of python packages and returns the list
580580of the packages to be included in the environment. Using the `withPackages` function, the previous
581581example for the Pyramid Web Framework environment can be written like this:
582582
@@ -584,10 +584,10 @@ example for the Pyramid Web Framework environment can be written like this:
584584
585585 python.withPackages (ps: [ps.pyramid])
586586
587−`withPackages` passes the correct package set for the specific interpreter version as an
587+`withPackages` passes the correct package set for the specific interpreter version as an
588588argument to the function. In the above example, `ps` equals `pythonPackages`.
589589But you can also easily switch to using python3:
590−
590+
591591 with import <nixpkgs> {};
592592
593593 python3.withPackages (ps: [ps.pyramid])
@@ -828,7 +828,7 @@ Create this `default.nix` file, together with a `requirements.txt` and simply ex
828828with import <nixpkgs> {};
829829with pkgs.python27Packages;
830830
831−stdenv.mkDerivation {
831+stdenv.mkDerivation {
832832 name = "impurePythonEnv";
833833 buildInputs = [
834834 # these packages are required for virtualenv and pip to work:
@@ -836,10 +836,10 @@ stdenv.mkDerivation {
836836 python27Full
837837 python27Packages.virtualenv
838838 python27Packages.pip
839− # the following packages are related to the dependencies of your python
840− # project.
841− # In this particular example the python modules listed in the
842− # requirements.tx require the following packages to be installed locally
839+ # the following packages are related to the dependencies of your python
840+ # project.
841+ # In this particular example the python modules listed in the
842+ # requirements.tx require the following packages to be installed locally
843843 # in order to compile any binary extensions they may require.
844844 #
845845 taglib
@@ -854,7 +854,7 @@ stdenv.mkDerivation {
854854 shellHook = ''
855855 # set SOURCE_DATE_EPOCH so that we can use python wheels
856856 SOURCE_DATE_EPOCH=$(date +%s)
857− virtualenv --no-setuptools venv
857+ virtualenv --no-setuptools venv
858858 export PATH=$PWD/venv/bin:$PATH
859859 pip install -r requirements.txt
860860 '';
@@ -862,7 +862,7 @@ stdenv.mkDerivation {
862862```
863863
864864Note that the `pip install` is an imperative action. So every time `nix-shell`
865−is executed it will attempt to download the python modules listed in
865+is executed it will attempt to download the python modules listed in
866866requirements.txt. However these will be cached locally within the `virtualenv`
867867folder and not downloaded again.
868868