guix-commits
[Top][All Lists]
Advanced

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

01/01: gnu: Add python-urwid and python2-urwid.


From: Mark H. Weaver
Subject: 01/01: gnu: Add python-urwid and python2-urwid.
Date: Tue, 03 Feb 2015 05:33:51 +0000

mhw pushed a commit to branch master
in repository guix.

commit e99f4211856b3f8e605d967fd6aeeb2bdb8dff26
Author: Mark H Weaver <address@hidden>
Date:   Tue Feb 3 00:31:03 2015 -0500

    gnu: Add python-urwid and python2-urwid.
    
    Based on preliminary work by Omar Radwan <address@hidden>.
    
    * gnu/packages/python.scm (python-urwid, python2-urwid): New variables.
---
 gnu/packages/python.scm |   31 ++++++++++++++++++++++++++++++-
 1 files changed, 30 insertions(+), 1 deletions(-)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 95b4ee4..dd66897 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -2,9 +2,10 @@
 ;;; Copyright © 2013 Nikita Karetnikov <address@hidden>
 ;;; Copyright © 2013, 2014 Ludovic Courtès <address@hidden>
 ;;; Copyright © 2013, 2014, 2015 Andreas Enge <address@hidden>
-;;; Copyright © 2014 Mark H Weaver <address@hidden>
+;;; Copyright © 2014, 2015 Mark H Weaver <address@hidden>
 ;;; Copyright © 2014 Eric Bavier <address@hidden>
 ;;; Copyright © 2014, 2015 Federico Beffa <address@hidden>
+;;; Copyright © 2015 Omar Radwan <address@hidden>
 ;;;
 ;;; 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))



reply via email to

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