From e99f4211856b3f8e605d967fd6aeeb2bdb8dff26 Mon Sep 17 00:00:00 2001 From: Mark H Weaver Date: Tue, 3 Feb 2015 00:31:03 -0500 Subject: gnu: Add python-urwid and python2-urwid. Based on preliminary work by Omar Radwan . * gnu/packages/python.scm (python-urwid, python2-urwid): New variables. --- gnu/packages/python.scm | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) 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 ;;; Copyright © 2013, 2014 Ludovic Courtès ;;; Copyright © 2013, 2014, 2015 Andreas Enge -;;; Copyright © 2014 Mark H Weaver +;;; Copyright © 2014, 2015 Mark H Weaver ;;; Copyright © 2014 Eric Bavier ;;; Copyright © 2014, 2015 Federico Beffa +;;; Copyright © 2015 Omar Radwan ;;; ;;; 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)) -- cgit v1.2.3