guix-commits
[Top][All Lists]
Advanced

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

01/02: gnu: iotop: Build with python3.


From: guix-commits
Subject: 01/02: gnu: iotop: Build with python3.
Date: Fri, 29 Nov 2019 03:55:26 -0500 (EST)

efraim pushed a commit to branch master
in repository guix.

commit d79db39dec0e50720843d33d561c4606e72eb7a6
Author: Efraim Flashner <address@hidden>
Date:   Fri Nov 29 00:21:05 2019 +0200

    gnu: iotop: Build with python3.
    
    * gnu/packages/linux.scm (iotop)[native-inputs]: Remove python-2, add
    python.
    [arguments]: Add phase to fix python3 compatibility.
---
 gnu/packages/linux.scm | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index a5564d9..d4624d1 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -2160,11 +2160,16 @@ the command line or a script.")
                 "1kp8mqg2pbxq4xzpianypadfxcsyfgwcaqgqia6h9fsq6zyh4z0s"))))
     (build-system python-build-system)
     (arguments
-     ;; The setup.py script expects python-2.
-     `(#:python ,python-2
+     '(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'fix-build-with-python3
+           (lambda _
+             (substitute* "setup.py"
+               (("itervalues") "values"))
+             #t)))
        ;; There are currently no checks in the package.
        #:tests? #f))
-    (native-inputs `(("python" ,python-2)))
+    (native-inputs `(("python" ,python)))
     (home-page "http://guichaz.free.fr/iotop/";)
     (synopsis
      "Displays the IO activity of running processes")



reply via email to

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