* [PATCH] gnu: Add alot and python-urwidtrees
@ 2016-07-01 18:16 Troy Sankey
2016-07-01 21:50 ` Leo Famulari
0 siblings, 1 reply; 4+ messages in thread
From: Troy Sankey @ 2016-07-01 18:16 UTC (permalink / raw)
To: guix-devel
---
gnu/packages/mail.scm | 31 +++++++++++++++++++++++++++++++
gnu/packages/python.scm | 24 ++++++++++++++++++++++++
2 files changed, 55 insertions(+)
diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index c3baa72..62ff246 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -397,6 +397,37 @@ messages you need; in addition, it allows you to view messages, extract
attachments, create new maildirs, and so on.")
(license gpl3+)))
+(define-public alot
+ (package
+ (name "alot")
+ (version "0.3.7")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/pazz/alot/archive/"
+ version ".tar.gz"))
+ (file-name (string-append "alot-" version ".tar.gz"))
+ (sha256
+ (base32
+ "09md9llg38r6xby8l0y0zf8nhlh91cr4xs0r15b294hhp8hl2bgx"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:tests? #f ; no tests
+ #:python ,python-2))
+ (inputs
+ `(("python2-magic" ,python2-magic)
+ ("python2-configobj" ,python2-configobj)
+ ("python2-twisted" ,python2-twisted)
+ ("python2-urwid" ,python2-urwid)
+ ("python2-urwidtrees" ,python2-urwidtrees)
+ ("python2-pygpgme" ,python2-pygpgme)
+ ("python2-notmuch" ,python2-notmuch)))
+ (home-page "https://github.com/pazz/alot")
+ (synopsis "Commandline MUA using notmuch and urwid")
+ (description
+ "Alot is an experimental terminal MUA based on notmuch mail. It is
+written in python using the urwid toolkit.")
+ (license gpl3+)))
+
(define-public notmuch
(package
(name "notmuch")
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 684c372..617732b 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -4488,6 +4488,30 @@ features useful for text console applications.")
(define-public python2-urwid
(package-with-python2 python-urwid))
+(define-public python-urwidtrees
+ (package
+ (name "python-urwidtrees")
+ (version "1.0.1.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "urwidtrees" version))
+ (sha256
+ (base32
+ "1zcvy12s7h3fazf33d6y7b4v19p8hg95xqwhqlmw6jz9fq76v9h8"))))
+ (build-system python-build-system)
+ (arguments
+ '(#:tests? #f))
+ (native-inputs `(("python-setuptools" ,python-setuptools)))
+ (inputs `(("python-urwid" ,python-urwid)))
+ (home-page "https://github.com/pazz/urwidtrees")
+ (synopsis "Tree widgets for urwid")
+ (description "Tree widgets for urwid.")
+ (license gpl3+)))
+
+(define-public python2-urwidtrees
+ (package-with-python2 python-urwidtrees))
+
(define-public python-dbus
(package
(name "python-dbus")
--
2.1.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] gnu: Add alot and python-urwidtrees
2016-07-01 18:16 [PATCH] gnu: Add alot and python-urwidtrees Troy Sankey
@ 2016-07-01 21:50 ` Leo Famulari
2016-07-02 18:43 ` Troy Sankey
0 siblings, 1 reply; 4+ messages in thread
From: Leo Famulari @ 2016-07-01 21:50 UTC (permalink / raw)
To: Troy Sankey; +Cc: guix-devel
Thanks for this patch!
Can you split it into two patches? We prefer to make one change (such as
a package addition) per commit. More comments are below.
On Fri, Jul 01, 2016 at 02:16:01PM -0400, Troy Sankey wrote:
> ---
> gnu/packages/mail.scm | 31 +++++++++++++++++++++++++++++++
> gnu/packages/python.scm | 24 ++++++++++++++++++++++++
Please remember to add your name to the list of authors at the beginning
of the files.
> +(define-public alot
> + (uri (string-append "https://github.com/pazz/alot/archive/"
> + version ".tar.gz"))
When possible, we prefer to use PyPi for downloading Python source code.
But in this case, I don't see version 0.3.7 on PyPi, so we'll use
GitHub.
> + #:python ,python-2))
If Python 3 is unsupported, can you mention it in a brief comment?
> + (synopsis "Commandline MUA using notmuch and urwid")
How about "Command-line mail client using @code{notmuch} and
@code{urwid}"? I'm not sure if the synopses support texinfo markup,
while I know the descriptions do.
> + (description
> + "Alot is an experimental terminal MUA based on notmuch mail. It is
> +written in python using the urwid toolkit.")
Can you unpack 'MUA' and wrap notmuch and urwid in texinfo as above?
> +(define-public python-urwidtrees
> + (arguments
> + '(#:tests? #f))
If there are no tests, can you say so in a comment as in 'alot'?
> + (native-inputs `(("python-setuptools" ,python-setuptools)))
> + (inputs `(("python-urwid" ,python-urwid)))
> + (home-page "https://github.com/pazz/urwidtrees")
> + (synopsis "Tree widgets for urwid")
> + (description "Tree widgets for urwid.")
How about adapting the description from the home-page?
> + (license gpl3+)))
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] gnu: Add alot and python-urwidtrees
2016-07-01 21:50 ` Leo Famulari
@ 2016-07-02 18:43 ` Troy Sankey
2016-07-03 20:55 ` Leo Famulari
0 siblings, 1 reply; 4+ messages in thread
From: Troy Sankey @ 2016-07-02 18:43 UTC (permalink / raw)
To: guix-devel
[-- Attachment #1: Type: text/plain, Size: 1887 bytes --]
On 2016-07-01 17:50:50 -0400, Leo Famulari wrote:
> Thanks for this patch!
Thanks for pointing out all my mistakes! :)
> > +(define-public alot
>
> > + (uri (string-append "https://github.com/pazz/alot/archive/"
> > + version ".tar.gz"))
>
> When possible, we prefer to use PyPi for downloading Python source code.
> But in this case, I don't see version 0.3.7 on PyPi, so we'll use
> GitHub.
Maybe I'll poke the devs about this.
> > + (synopsis "Commandline MUA using notmuch and urwid")
>
> How about "Command-line mail client using @code{notmuch} and
> @code{urwid}"? I'm not sure if the synopses support texinfo markup,
> while I know the descriptions do.
$ guix package --show=alot | grep synopsis
synopsis: Commandline MUA using @code{notmuch} and @code{urwid}
I guess no markup support in the synopsis, I'll just trim it down to:
"Commandline MUA using notmuch"
It uses python-urwid inasmuch as it uses python-twisted, but it's (to me)
primarily known for its usage of the notmuch mail indexing system and for being
written in python. I'll poke the devs and come back with a new patch if
necessary.
> > + (description
> > + "Alot is an experimental terminal MUA based on notmuch mail. It is
> > +written in python using the urwid toolkit.")
>
> Can you unpack 'MUA' and wrap notmuch and urwid in texinfo as above?
Still including the 'MUA' abbreviation because I think it is common enough.
Some linting:
$ EVERYTHING_EXCEPT_CVE=description,gnu-description,inputs-should-be-native,patch-file-names,home-page,license,source,source-file-name,derivation,synopsis,formatting
$ guix lint -c $EVERYTHING_EXCEPT_CVE alot python{2,}-urwidtrees
$ echo $?
0
(CVE checker takes too long, I'm using slow wifi from a café)
Finally, I'll say that I do use it, and it does build and work correctly.
Troy
[-- Attachment #2: 0001-gnu-Add-python-urwidtrees.patch --]
[-- Type: application/octet-stream, Size: 1808 bytes --]
From a2480d447065607ce026ae237564abfec12a26ed Mon Sep 17 00:00:00 2001
From: Troy Sankey <sankeytms@gmail.com>
Date: Sat, 2 Jul 2016 14:27:41 -0400
Subject: [PATCH 1/2] gnu: Add python-urwidtrees
---
gnu/packages/python.scm | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 684c372..27c6515 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -22,6 +22,7 @@
;;; Copyright © 2016 Hartmut Goebel <h.goebel@crazy-compilers.com>
;;; Copyright © 2016 Daniel Pimentel <d4n1@d4n1.org>
;;; Copyright © 2016 Sou Bunnbu <iyzsong@gmail.com>
+;;; Copyright © 2016 Troy Sankey <sankeytms@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -4488,6 +4489,31 @@ features useful for text console applications.")
(define-public python2-urwid
(package-with-python2 python-urwid))
+(define-public python-urwidtrees
+ (package
+ (name "python-urwidtrees")
+ (version "1.0.1.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "urwidtrees" version))
+ (sha256
+ (base32
+ "1zcvy12s7h3fazf33d6y7b4v19p8hg95xqwhqlmw6jz9fq76v9h8"))))
+ (build-system python-build-system)
+ (arguments
+ '(#:tests? #f)) ; no tests
+ (native-inputs `(("python-setuptools" ,python-setuptools)))
+ (inputs `(("python-urwid" ,python-urwid)))
+ (home-page "https://github.com/pazz/urwidtrees")
+ (synopsis "Tree widgets for urwid")
+ (description "Urwidtrees is a Widget Container API for the @code{urwid}
+toolkit. Use it to build trees of widgets.")
+ (license gpl3+)))
+
+(define-public python2-urwidtrees
+ (package-with-python2 python-urwidtrees))
+
(define-public python-dbus
(package
(name "python-dbus")
--
2.1.4
[-- Attachment #3: 0002-gnu-Add-alot.patch --]
[-- Type: application/octet-stream, Size: 2327 bytes --]
From beacf28bf27666fb4a1e13cc9567a32d227779b2 Mon Sep 17 00:00:00 2001
From: Troy Sankey <sankeytms@gmail.com>
Date: Sat, 2 Jul 2016 14:28:35 -0400
Subject: [PATCH 2/2] gnu: Add alot
---
gnu/packages/mail.scm | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index c3baa72..44e7ef0 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -14,6 +14,7 @@
;;; Copyright © 2016 Leo Famulari <leo@famulari.name>
;;; Copyright © 2016 Lukas Gradl <lgradl@openmailbox.org>
;;; Copyright © 2016 Alex Kost <alezost@gmail.com>
+;;; Copyright © 2016 Troy Sankey <sankeytms@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -397,6 +398,40 @@ messages you need; in addition, it allows you to view messages, extract
attachments, create new maildirs, and so on.")
(license gpl3+)))
+(define-public alot
+ (package
+ (name "alot")
+ (version "0.3.7")
+ (source (origin
+ (method url-fetch)
+ ; v0.3.7 not on PyPi yet, so use github instead
+ (uri (string-append "https://github.com/pazz/alot/archive/"
+ version ".tar.gz"))
+ (file-name (string-append "alot-" version ".tar.gz"))
+ (sha256
+ (base32
+ "09md9llg38r6xby8l0y0zf8nhlh91cr4xs0r15b294hhp8hl2bgx"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:tests? #f ; no tests
+ ; python 3 is unsupported, more info:
+ ; https://github.com/pazz/alot/blob/0.3.7/docs/source/faq.rst
+ #:python ,python-2))
+ (inputs
+ `(("python2-magic" ,python2-magic)
+ ("python2-configobj" ,python2-configobj)
+ ("python2-twisted" ,python2-twisted)
+ ("python2-urwid" ,python2-urwid)
+ ("python2-urwidtrees" ,python2-urwidtrees)
+ ("python2-pygpgme" ,python2-pygpgme)
+ ("python2-notmuch" ,python2-notmuch)))
+ (home-page "https://github.com/pazz/alot")
+ (synopsis "Commandline MUA using notmuch")
+ (description
+ "Alot is an experimental terminal mail user agent (MUA) based on
+@code{notmuch} mail. It is written in python using the @code{urwid} toolkit.")
+ (license gpl3+)))
+
(define-public notmuch
(package
(name "notmuch")
--
2.1.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] gnu: Add alot and python-urwidtrees
2016-07-02 18:43 ` Troy Sankey
@ 2016-07-03 20:55 ` Leo Famulari
0 siblings, 0 replies; 4+ messages in thread
From: Leo Famulari @ 2016-07-03 20:55 UTC (permalink / raw)
To: Troy Sankey; +Cc: guix-devel
Thanks for the updated patches!
On Sat, Jul 02, 2016 at 02:43:44PM -0400, Troy Sankey wrote:
> Finally, I'll say that I do use it, and it does build and work correctly.
Great!
I found that setuptools was not required for urwidtrees, so I removed
it, added changelogs to the commit messages, and pushed as a2cb16b0c.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-07-03 20:55 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-01 18:16 [PATCH] gnu: Add alot and python-urwidtrees Troy Sankey
2016-07-01 21:50 ` Leo Famulari
2016-07-02 18:43 ` Troy Sankey
2016-07-03 20:55 ` Leo Famulari
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).