summary refs log tree commit diff
path: root/gnu/packages
diff options
context:
space:
mode:
authorMark H Weaver <mhw@netris.org>2015-02-03 00:31:03 -0500
committerMark H Weaver <mhw@netris.org>2015-02-03 00:33:08 -0500
commite99f4211856b3f8e605d967fd6aeeb2bdb8dff26 (patch)
tree288dcb4e4d31a7f726382271bf56a8c2dc93af02 /gnu/packages
parent50b7a6a040fc63ee301d2f7e834d09aef065b996 (diff)
downloadguix-e99f4211856b3f8e605d967fd6aeeb2bdb8dff26.tar.gz
gnu: Add python-urwid and python2-urwid.
Based on preliminary work by Omar Radwan <toxemicsquire4@gmail.com>.

* gnu/packages/python.scm (python-urwid, python2-urwid): New variables.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/python.scm31
1 files changed, 30 insertions, 1 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 95b4ee4287..dd66897729 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -2,9 +2,10 @@
 ;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org>
 ;;; Copyright © 2013, 2014 Ludovic Courtès <ludo@gnu.org>
 ;;; Copyright © 2013, 2014, 2015 Andreas Enge <andreas@enge.fr>
-;;; Copyright © 2014 Mark H Weaver <mhw@netris.org>
+;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
 ;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
 ;;; Copyright © 2014, 2015 Federico Beffa <beffa@fbengineering.ch>
+;;; Copyright © 2015 Omar Radwan <toxemicsquire4@gmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -2848,3 +2849,31 @@ and written in Python.")
 
 (define-public python2-html5lib
   (package-with-python2 python-html5lib))
+
+(define-public python-urwid
+  (package
+    (name "python-urwid")
+    (version "1.3.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (list (string-append
+                   "https://pypi.python.org/packages/source/u/urwid/urwid-"
+                   version ".tar.gz")
+                  ;; Downloading from the upstream URI above fails due to an
+                  ;; invalid ETag header.
+                  "https://pkgs.fedoraproject.org/repo/pkgs/python-urwid/urwid-1.3.0.tar.gz/a989acd54f4ff1a554add464803a9175/urwid-1.3.0.tar.gz"))
+       (sha256
+        (base32
+         "18mb0yy94sjc434rd61m2sfnw27sa0nyrszpj5a9r9zh7fnlzw19"))))
+    (build-system python-build-system)
+    (native-inputs `(("python-setuptools" ,python-setuptools)))
+    (home-page "http://urwid.org")
+    (synopsis "Console user interface library for Python")
+    (description
+     "Urwid is a curses-based UI/widget library for Python.  It includes many
+features useful for text console applications.")
+    (license lgpl2.1+)))
+
+(define-public python2-urwid
+  (package-with-python2 python-urwid))