unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Leo Famulari <leo@famulari.name>
To: Eric Bavier <ericbavier@openmailbox.org>
Cc: guix-devel@gnu.org,
	guix-devel-bounces+ericbavier=openmailbox.org@gnu.org
Subject: Re: [PATCH 17/17] gnu: Add khal.
Date: Thu, 7 Jan 2016 11:50:33 -0500	[thread overview]
Message-ID: <20160107165033.GH3632@jasmine> (raw)
In-Reply-To: <4212c233410b2b5f3bcc0cb6405fcbf0@openmailbox.org>

On Wed, Jan 06, 2016 at 01:31:05PM -0600, Eric Bavier wrote:
> On 2016-01-03 18:05, Leo Famulari wrote:
> >* gnu/packages/calendar.scm (khal): New variable.
> >---
> > gnu/packages/calendar.scm | 79
> >++++++++++++++++++++++++++++++++++++++++++++++-
> > 1 file changed, 78 insertions(+), 1 deletion(-)
> >
> >diff --git a/gnu/packages/calendar.scm b/gnu/packages/calendar.scm
> >index 7e87fbb..d8f9627 100644
> >--- a/gnu/packages/calendar.scm
> >+++ b/gnu/packages/calendar.scm
> >@@ -1,5 +1,6 @@
> > ;;; GNU Guix --- Functional package management for GNU
> > ;;; Copyright © 2015 David Thompson <davet@gnu.org>
> >+;;; Copyright © 2015 Leo Famulari <leo@famulari.name>
> > ;;;
> > ;;; This file is part of GNU Guix.
> > ;;;
> >@@ -22,8 +23,14 @@
> >   #:use-module (guix packages)
> >   #:use-module (guix download)
> >   #:use-module (guix build-system cmake)
> >+  #:use-module (guix build-system python)
> >+  #:use-module (gnu packages base)
> >+  #:use-module (gnu packages databases)
> >+  #:use-module (gnu packages dav)
> >+  #:use-module (gnu packages freedesktop)
> >   #:use-module (gnu packages icu4c)
> >-  #:use-module (gnu packages perl))
> >+  #:use-module (gnu packages perl)
> >+  #:use-module (gnu packages python))
> >
> > (define-public libical
> >   (package
> >@@ -50,3 +57,73 @@
> >      "Libical is an implementation of the iCalendar protocols and
> >protocol
> > data units.")
> >     (license lgpl2.1)))
> >+
> >+(define-public khal
> >+  (package
> >+    (name "khal")
> >+    (version "0.7.0")
> >+    (source (origin
> >+             (method url-fetch)
> >+             (uri (pypi-uri "khal" version))
> >+             (sha256
> >+              (base32
> >+               "00llxj7cv31mjsx0j6zxmyi9s1q20yvfkn025xcy8cv1ylfwic66"))))
> >+    (build-system python-build-system)
> >+    (arguments
> >+     `(#:phases (modify-phases %standard-phases
> >+        ;; Patch sent upstream: https://github.com/geier/khal/pull/307
> >+        (add-after
> >+          'unpack 'patch-broken-path
> >+          (lambda _
> >+            (substitute* "doc/source/Makefile"
> >+              (("../../../khal/khal/settings/khal.spec")
> >+               "../../khal/settings/khal.spec" ))))
> 
> This should perhaps be moved to an origin snippet since the fix is not
> specific to the guix build, so that users who want to `guix build --sources
> khal` get working source.

That's a good point. Now I see the value of origin snippets :)

> 
> 
> >+        ;; Bug reported: https://github.com/geier/khal/issues/309
> >+        (add-after 'unpack 'disable-test
> >+          (lambda _
> >+            (substitute* "tests/khalendar_test.py"
> >+                         (("test_only_update_old_event")
> >+                          "disabled_only_update_old_event"))))
> >+        ;; Building the manpage requires khal to be installed.
> >+        (add-after 'install 'manpage
> >+          (lambda* (#:key outputs #:allow-other-keys)
> >+            (setenv "PYTHONPATH"
> >+                    (string-append
> >+                      (getenv "PYTHONPATH")
> >+                      ":" (assoc-ref outputs "out")))
> >+            (zero? (system* "make" "--directory=doc/" "man"))
> >+            (install-file
> >+              "doc/build/man/khal.1"
> >+              (string-append
> >+                (assoc-ref outputs "out")
> >+                "/share/man/man1"))))
> >+        (replace 'check
> >+          (lambda* (#:key inputs #:allow-other-keys)
> >+            ;; The tests require us to choose a timezone.
> >+            (setenv "TZ"
> >+                    (string-append (assoc-ref inputs "tzdata")
> >+                                   "/share/zoneinfo/Zulu"))
> >+            (zero? (system* "py.test" "tests")))))))
> >+    (native-inputs
> >+     `(("python-pytest" ,python-pytest)
> >+       ("python-setuptools-scm" ,python-setuptools-scm)
> >+       ;; Required for tests
> >+       ("tzdata" ,tzdata)
> >+       ;; Required to build manpage
> >+       ("python-sphinxcontrib-newsfeed" ,python-sphinxcontrib-newsfeed)
> >+       ("python-sphinx" ,python-sphinx)))
> >+    (inputs
> >+     `(("sqlite" ,sqlite)))
> >+    (propagated-inputs
> >+     `(("python-configobj" ,python-configobj)
> >+       ("python-dateutil-2" ,python-dateutil-2)
> >+       ("python-icalendar" ,python-icalendar)
> >+       ("python-tzlocal" ,python-tzlocal)
> >+       ("python-urwid" ,python-urwid)
> >+       ("python-pyxdg" ,python-pyxdg)
> >+       ("vdirsyncer" ,vdirsyncer)))
> >+    (synopsis "CLI and TUI calendar program")
> 
> How about "Console calendar program"?

That is better.

Before pushing, I'll wait a while longer in case there are more comments.

> 
> >+    (description "Khal is a standards based CLI and TUI calendar program,
> >able
> 
> ditto
> 
> >+to synchronize with CalDAV servers through vdirsyncer.")
> >+    (home-page "http://lostpackets.de/khal/")
> >+    (license expat)))
> 
> -- 
> `~Eric

      reply	other threads:[~2016-01-07 16:50 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-04  0:04 [PATCH 00/17] Add CalDAV and CardDAV programs Leo Famulari
2016-01-04  0:04 ` [PATCH 01/17] gnu: Add python-atomicwrites Leo Famulari
2016-01-06 19:02   ` Efraim Flashner
2016-01-07 16:48     ` Leo Famulari
2016-01-10  2:48       ` Leo Famulari
2016-01-04  0:05 ` [PATCH 02/17] gnu: Add python-requests-toolbelt Leo Famulari
2016-01-04  0:05 ` [PATCH 03/17] gnu: Add python-click-threading Leo Famulari
2016-01-06 18:48   ` Eric Bavier
2016-01-07 16:48     ` Leo Famulari
2016-01-04  0:05 ` [PATCH 04/17] gnu: Add python-click-log Leo Famulari
2016-01-06 19:04   ` Efraim Flashner
2016-01-07 16:49     ` Leo Famulari
2016-01-04  0:05 ` [PATCH 05/17] gnu: Add python-apipkg Leo Famulari
2016-01-04  0:05 ` [PATCH 06/17] gnu: Add python-execnet Leo Famulari
2016-01-06 18:57   ` Eric Bavier
2016-01-07 16:48     ` Leo Famulari
2016-01-04  0:05 ` [PATCH 07/17] gnu: Add python-pytest-cache Leo Famulari
2016-01-04  0:05 ` [PATCH 08/17] gnu: Add python-pytest-localserver Leo Famulari
2016-01-06 19:09   ` Eric Bavier
2016-01-07 16:49     ` Leo Famulari
2016-01-04  0:05 ` [PATCH 09/17] gnu: Add python-wsgi-intercept Leo Famulari
2016-01-04  0:05 ` [PATCH 10/17] gnu: Add python-pytest-xprocess Leo Famulari
2016-01-04  0:05 ` [PATCH 11/17] gnu: Add radicale Leo Famulari
2016-01-04  0:05 ` [PATCH 12/17] gnu: Add vdirsyncer Leo Famulari
2016-01-06 19:11   ` Efraim Flashner
2016-01-04  0:05 ` [PATCH 13/17] gnu: Add python-icalendar Leo Famulari
2016-01-04  0:05 ` [PATCH 14/17] gnu: Add python-sphinxcontrib-newsfeed Leo Famulari
2016-01-04  0:05 ` [PATCH 15/17] gnu: Update python-tzlocal to 1.2 Leo Famulari
2016-01-06 19:14   ` Efraim Flashner
2016-01-07 16:49     ` Leo Famulari
2016-01-04  0:05 ` [PATCH 16/17] gnu: python-urwid: Disable failing test test_remove_watch_file Leo Famulari
2016-01-04  0:05 ` [PATCH 17/17] gnu: Add khal Leo Famulari
2016-01-06 19:23   ` Efraim Flashner
2016-01-07 16:49     ` Leo Famulari
2016-01-06 19:31   ` Eric Bavier
2016-01-07 16:50     ` Leo Famulari [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160107165033.GH3632@jasmine \
    --to=leo@famulari.name \
    --cc=ericbavier@openmailbox.org \
    --cc=guix-devel-bounces+ericbavier=openmailbox.org@gnu.org \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).