about summary refs log tree commit diff
path: root/doc
diff options
context:
space:
mode:
authorFelix Biggs <8948653+biggs@users.noreply.github.com>2019-03-18 20:01:54 -0400
committerworldofpeace <worldofpeace@users.noreply.github.com>2019-03-22 22:27:06 -0400
commit149e1d36bf421058dc897bd01a439e36355f4011 (patch)
tree7faa73a65982eac1d3f87cd4c253762465ff8cbd /doc
parent392e8f8edba707cf37855fc4637f0277c7d0adbf (diff)
doc/python: remove unnecessary let statement
(cherry picked from commit 1e86c0a7df5c30fbfbdfdd74c88b18baa3f7216d)
Diffstat (limited to 'doc')
-rw-r--r--doc/languages-frameworks/python.section.md29
1 files changed, 14 insertions, 15 deletions
diff --git a/doc/languages-frameworks/python.section.md b/doc/languages-frameworks/python.section.md
index 1c9f9fdebe427..e1630c8cb03a3 100644
--- a/doc/languages-frameworks/python.section.md
+++ b/doc/languages-frameworks/python.section.md
@@ -188,25 +188,24 @@ building Python libraries is `buildPythonPackage`. Let's see how we can build th
 ```nix
 { lib, buildPythonPackage, fetchPypi }:
 
-  toolz = buildPythonPackage rec {
-    pname = "toolz";
-    version = "0.7.4";
+buildPythonPackage rec {
+  pname = "toolz";
+  version = "0.7.4";
 
-    src = fetchPypi {
-      inherit pname version;
-      sha256 = "43c2c9e5e7a16b6c88ba3088a9bfc82f7db8e13378be7c78d6c14a5f8ed05afd";
-    };
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "43c2c9e5e7a16b6c88ba3088a9bfc82f7db8e13378be7c78d6c14a5f8ed05afd";
+  };
 
-    doCheck = false;
+  doCheck = false;
 
-    meta = with lib; {
-      homepage = https://github.com/pytoolz/toolz;
-      description = "List processing tools and functional utilities";
-      license = licenses.bsd3;
-      maintainers = with maintainers; [ fridh ];
-    };
+  meta = with lib; {
+    homepage = https://github.com/pytoolz/toolz;
+    description = "List processing tools and functional utilities";
+    license = licenses.bsd3;
+    maintainers = with maintainers; [ fridh ];
   };
-}
+};
 ```
 
 What happens here? The function `buildPythonPackage` is called and as argument