guix-patches
[Top][All Lists]
Advanced

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

[bug#28450] [PATCH] gnu: Add pydf.


From: Stefan Reichör
Subject: [bug#28450] [PATCH] gnu: Add pydf.
Date: Thu, 14 Sep 2017 21:00:16 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Hi Ludo!

Here is my updated patch.

> Heya,
>
> Stefan Reichör <address@hidden> skribis:
>
>> * gnu/packages/disk.scm (pydf): New variable.
>
> [...]
>
>> +  (home-page "http://kassiopeia.juls.savba.sk/~garabik/software/pydf/";)
>> +  (synopsis "Colourised df(1)-clone")
>> +  (description "All-singing, all-dancing, fully colourised df(1)-clone 
>> written
>> +in python.")
>
> That looks very similar to ‘dfc’ no?  (Which is not a reason not to
> include it of course, just wondering.)

Until yesterday I only knew df.
Today I know two useful tools to display the disk usage :-)

> I like the funny description, but could you come up with one that at
> says that it displays disk usage at least?  Also, I’m nitpicking, but
> could you write address@hidden instead of “df(1)”?
>
> Could you send an updated patch?
>
> Thanks in advance!
>
> Ludo’.

Stefan.

>From c6daa8148465c1cf7d61efbf7e936a8d45963f78 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stefan=20Reich=C3=B6r?= <address@hidden>
Date: Thu, 14 Sep 2017 20:55:01 +0200
Subject: [PATCH] gnu: Add pydf.

* gnu/packages/disk.scm (pydf): New variable.
---
 gnu/packages/disk.scm | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/gnu/packages/disk.scm b/gnu/packages/disk.scm
index 49bbbfa..31d2573 100644
--- a/gnu/packages/disk.scm
+++ b/gnu/packages/disk.scm
@@ -8,6 +8,7 @@
 ;;; Copyright © 2016 Roel Janssen <address@hidden>
 ;;; Copyright © 2016, 2017 Marius Bakke <address@hidden>
 ;;; Copyright © 2017 Hartmut Goebel <address@hidden>
+;;; Copyright © 2017 Stefan Reichör <address@hidden>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -30,6 +31,7 @@
   #:use-module (guix download)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system trivial)
+  #:use-module (guix build-system python)
   #:use-module (gnu packages)
   #:use-module (gnu packages base)
   #:use-module (gnu packages docbook)
@@ -353,6 +355,25 @@ permit managing file systems not included in libparted.")
     ;; The home page says GPLv2, but the source code says GPLv2+.
     (license license:gpl2+)))
 
+(define-public pydf
+  (package
+    (name "pydf")
+    (version "12")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "pydf" version))
+       (sha256
+        (base32
+         "0f8ly8xyp93i2hm9c0qjqd4y86nz73axw2f09z01mszwmg1sfivz"))))
+  (build-system python-build-system)
+  (home-page "http://kassiopeia.juls.savba.sk/~garabik/software/pydf/";)
+  (synopsis "Colourised @command{df} clone")
+  (description "All-singing, all-dancing, fully colourised @command{df} clone
+written in python. It displays the amount of disk space available on the
+mounted filesystems, using different colours for different types of
+filesystems. Output format is completely customizable.")
+  (license license:public-domain)))
 
 (define-public f3
   (package
-- 
2.7.4


reply via email to

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