guix-commits
[Top][All Lists]
Advanced

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

02/04: gnu: dstat: Fix Python 3 deprecation warning.


From: guix-commits
Subject: 02/04: gnu: dstat: Fix Python 3 deprecation warning.
Date: Sun, 16 Jun 2019 13:45:40 -0400 (EDT)

nckx pushed a commit to branch master
in repository guix.

commit fa67073f13a889589b4b0207e83891fe9226f2dc
Author: Tobias Geerinckx-Rice <address@hidden>
Date:   Sun Jun 16 02:58:43 2019 +0200

    gnu: dstat: Fix Python 3 deprecation warning.
    
    * gnu/packages/admin.scm (dstat)[arguments]:
    Add ‘fix-python3-DeprecationWarning’ phase.
---
 gnu/packages/admin.scm | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index 9392c59..a897afd 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -2142,6 +2142,11 @@ results (ndiff), and a packet generation and response 
analysis tool (nping).")
                             "prefix=/"))
        #:phases
        (modify-phases %standard-phases
+         (add-after 'unpack 'fix-python3-DeprecationWarning
+           (lambda _
+             (substitute* "dstat"
+               (("collections") "collections.abc"))
+             #t))
          (delete 'configure)            ; no configure script
          (add-after 'install 'wrap
            (lambda* (#:key outputs #:allow-other-keys)
@@ -2150,8 +2155,6 @@ results (ndiff), and a packet generation and response 
analysis tool (nping).")
                  `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH"))))
                #t))))))
     (inputs
-     ;; Python 3 is supposedly supported but prints a DeprecationWarning.
-     ;; Upstream is dead.  See <https://github.com/dagwieers/dstat/releases>.
      `(("python" ,python-wrapper)
        ("python-six" ,python-six)))
     (synopsis "Versatile resource statistics tool")



reply via email to

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