guix-commits
[Top][All Lists]
Advanced

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

02/02: gnu: python-glances: Don't check for updates by default.


From: guix-commits
Subject: 02/02: gnu: python-glances: Don't check for updates by default.
Date: Tue, 30 Jul 2019 23:50:05 -0400 (EDT)

nckx pushed a commit to branch master
in repository guix.

commit 15b4c91163a54bfab1599999165313c3a7d13f84
Author: Tobias Geerinckx-Rice <address@hidden>
Date:   Wed Jul 31 05:39:16 2019 +0200

    gnu: python-glances: Don't check for updates by default.
    
    * gnu/packages/python-xyz.scm (python-glances)[source]: Add snippet.
---
 gnu/packages/python-xyz.scm | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 49e125a..98248e2 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -10952,7 +10952,18 @@ command @command{natsort} that exposes this 
functionality in the command line.")
       (uri (pypi-uri "Glances" version))
       (sha256
         (base32
-          "07j1ggzsqiskyz1i4mrnyr9i95v0dqi0i0hibnv1l188km8shmi8"))))
+          "07j1ggzsqiskyz1i4mrnyr9i95v0dqi0i0hibnv1l188km8shmi8"))
+      (modules '((guix build utils)))
+      (snippet
+       '(begin
+          ;; Glances phones PyPI for weekly update checks by default.
+          ;; Disable these.  The user can re-enable them if desired.
+          (substitute* "glances/outdated.py"
+            (("^(.*)self\\.load_config\\(config\\)\n" line indentation)
+             (string-append indentation
+                            "self.args.disable_check_update = True\n"
+                            line)))
+          #t))))
   (build-system python-build-system)
   (propagated-inputs
    `(("python-future" ,python-future)



reply via email to

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