guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/03: gnu: python-3.8: Fix indentation.


From: guix-commits
Subject: 01/03: gnu: python-3.8: Fix indentation.
Date: Wed, 13 Jan 2021 00:07:26 -0500 (EST)

apteryx pushed a commit to branch core-updates
in repository guix.

commit 44b0ffcf00f2150c120ecf82003ab10a93fe2184
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Wed Oct 21 22:12:48 2020 -0400

    gnu: python-3.8: Fix indentation.
    
    * gnu/packages/python.scm (python-3.8): Fix indentation.
---
 gnu/packages/python.scm | 57 +++++++++++++++++++++++++------------------------
 1 file changed, 29 insertions(+), 28 deletions(-)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 1c183f9..c0686b0 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -362,7 +362,8 @@ data types.")
     (properties `((superseded . ,python-2)))))
 
 (define-public python-3.8
-  (package (inherit python-2)
+  (package
+    (inherit python-2)
     (name "python")
     (version "3.8.5")
     (source (origin
@@ -430,24 +431,24 @@ data types.")
                         " test_write_pty")
                       '()))))
        ((#:phases phases)
-       `(modify-phases ,phases
-          ,@(if (hurd-system?)
-                `((delete 'patch-regen-for-hurd)) ;regen was removed after 
3.5.9
-                '())
-          (add-before 'check 'set-TZDIR
-            (lambda* (#:key inputs native-inputs #:allow-other-keys)
-              ;; test_email requires the Olson time zone database.
-              (setenv "TZDIR"
-                      (string-append (assoc-ref
-                                      (or native-inputs inputs) "tzdata")
-                                     "/share/zoneinfo"))
-              #t))
-          ;; Unset SOURCE_DATE_EPOCH while running the test-suite and set it
-          ;; again afterwards.  See <https://bugs.python.org/issue34022>.
-          (add-before 'check 'unset-SOURCE_DATE_EPOCH
-            (lambda _ (unsetenv "SOURCE_DATE_EPOCH") #t))
-          (add-after 'check 'reset-SOURCE_DATE_EPOCH
-            (lambda _ (setenv "SOURCE_DATE_EPOCH" "1") #t))
+        `(modify-phases ,phases
+           ,@(if (hurd-system?)
+                 `((delete 'patch-regen-for-hurd)) ;regen was removed after 
3.5.9
+                 '())
+           (add-before 'check 'set-TZDIR
+             (lambda* (#:key inputs native-inputs #:allow-other-keys)
+               ;; test_email requires the Olson time zone database.
+               (setenv "TZDIR"
+                       (string-append (assoc-ref
+                                       (or native-inputs inputs) "tzdata")
+                                      "/share/zoneinfo"))
+               #t))
+           ;; Unset SOURCE_DATE_EPOCH while running the test-suite and set it
+           ;; again afterwards.  See <https://bugs.python.org/issue34022>.
+           (add-before 'check 'unset-SOURCE_DATE_EPOCH
+             (lambda _ (unsetenv "SOURCE_DATE_EPOCH") #t))
+           (add-after 'check 'reset-SOURCE_DATE_EPOCH
+             (lambda _ (setenv "SOURCE_DATE_EPOCH" "1") #t))
            (replace 'rebuild-bytecode
              (lambda* (#:key outputs #:allow-other-keys)
                (let ((out (assoc-ref outputs "out")))
@@ -464,12 +465,12 @@ data types.")
                                                "python3"
                                                '(string-append out
                                                                "/bin/python3"))
-                                          ,@opt
-                                          "-m" "compileall"
-                                          "-f" ; force rebuild
-                                          ;; Don't build lib2to3, because it's 
Python 2 code.
-                                          "-x" "lib2to3/.*"
-                                          ,file)))
+                                         ,@opt
+                                         "-m" "compileall"
+                                         "-f" ; force rebuild
+                                         ;; Don't build lib2to3, because it's 
Python 2 code.
+                                         "-x" "lib2to3/.*"
+                                         ,file)))
                               (find-files out "\\.py$")))
                   (list '() '("-O") '("-OO")))
                  #t)))
@@ -481,9 +482,9 @@ data types.")
                         '("arm" "aarch64"))
                    '((add-after 'unpack 'apply-alignment-patch
                        (lambda* (#:key native-inputs inputs #:allow-other-keys)
-                        (invoke "patch" "-p1" "--force" "--input"
-                                (assoc-ref (or native-inputs inputs)
-                                           "arm-alignment.patch")))))
+                         (invoke "patch" "-p1" "--force" "--input"
+                                 (assoc-ref (or native-inputs inputs)
+                                            "arm-alignment.patch")))))
                    '()))))))
     (native-inputs
      `(("tzdata" ,tzdata-for-tests)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]