Here is it, finally I hope this is good enough. And by the way, you asked for me to do this
> (arguments `(#:python ,python-2)) instead of what I did before, but that gives me an error, so I can't build it, so I hope it's ok if I leave it the way it is. But I did put python2-setuptools in native-inputs On Mon, Feb 2, 2015 at 9:59 AM, Andreas Enge <andr...@enge.fr> wrote: > On Mon, Feb 02, 2015 at 09:46:10AM -0800, Omar Radwan wrote: > > I was in such a hurry. I'll get it in asap > > That sounds like a contradiction! Take your time ;-) > > You may also want to run "./pre-inst-env guix lint PACKAGE" > before you submit your patch, it catches some common problems. > > Andreas > >
From 7d9f79c3e4b6e4121c0304d5da3995a2f3473fe0 Mon Sep 17 00:00:00 2001 From: Omar Radwan <toxemicsqui...@gmail.com> Date: Mon, 2 Feb 2015 18:28:21 -0800 Subject: [PATCH] gnu: Add urwid * gnu/packages/python.scm (urwid): New Variable. --- gnu/packages/python.scm | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 95b4ee4..8a7f105 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -5,7 +5,8 @@ ;;; Copyright © 2014 Mark H Weaver <m...@netris.org> ;;; Copyright © 2014 Eric Bavier <bav...@member.fsf.org> ;;; Copyright © 2014, 2015 Federico Beffa <be...@fbengineering.ch> -;;; +;;; Copyright © 2015 Omar Radwan <toxemicsqui...@gmail.com> + ;;; This file is part of GNU Guix. ;;; ;;; GNU Guix is free software; you can redistribute it and/or modify it @@ -2192,7 +2193,7 @@ that client code uses to construct the grammar directly in Python code.") ("freetype" ,freetype) ("cairo" ,cairo) ("glib" ,glib) - ("python-pillow" ,python-pillow) + ;("python-pillow" ,python-pillow) ;; FIXME: Add backends when available. ;("python-wxpython" ,python-wxpython) ;("python-pyqt" ,python-pyqt) @@ -2848,3 +2849,28 @@ and written in Python.") (define-public python2-html5lib (package-with-python2 python-html5lib)) + + +(define-public urwid + (package + (name "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) + (inputs `(("python" ,python)("python-2" ,python-2))) + (native-inputs `(("python2-setuptools" ,python2-setuptools))) + (home-page "http://urwid.org") + (synopsis "Console user interface library for Python") + (description "Urwid is a console user interface library for python. + It includes many features useful for text console application.") + (license lgpl2.1))) + -- 2.2.1