From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: [PATCH 5/5] gnu: Add khard. Date: Thu, 3 Mar 2016 17:11:56 -0500 Message-ID: <289785eed7200bb09305843b2c3d0bd1222ff62e.1457042922.git.leo@famulari.name> References: Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34003) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1abbTZ-0003J2-AL for guix-devel@gnu.org; Thu, 03 Mar 2016 17:12:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1abbTX-0002sk-F0 for guix-devel@gnu.org; Thu, 03 Mar 2016 17:12:05 -0500 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:41596) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1abbTX-0002sD-9n for guix-devel@gnu.org; Thu, 03 Mar 2016 17:12:03 -0500 Received: from jasmine.lan (c-69-249-5-231.hsd1.pa.comcast.net [69.249.5.231]) by mail.messagingengine.com (Postfix) with ESMTPA id E28A1680224 for ; Thu, 3 Mar 2016 17:12:01 -0500 (EST) In-Reply-To: In-Reply-To: References: List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org * gnu/packages/mail.scm (khard): New variable. --- gnu/packages/mail.scm | 47 ++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 44 insertions(+), 3 deletions(-) diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm index 013954b..a34a4de 100644 --- a/gnu/packages/mail.scm +++ b/gnu/packages/mail.scm @@ -71,8 +71,8 @@ #:use-module (gnu packages xml) #:use-module (gnu packages xorg) #:use-module ((guix licenses) - #:select (gpl2 gpl2+ gpl3+ lgpl2.1 lgpl2.1+ lgpl3+ non-copyleft - (expat . license:expat))) + #:select (gpl2 gpl2+ gpl3 gpl3+ lgpl2.1 lgpl2.1+ lgpl3+ + non-copyleft (expat . license:expat))) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix git-download) @@ -1150,5 +1150,46 @@ maintained.") ;; nonfree Artistic License 1.0 ;; as alternative to the GPL2+. ;; This option is not listed here. -;;; mail.scm ends here +(define-public khard + (package + (name "khard") + (version "0.8.1") + (source (origin + (method url-fetch) + (uri (pypi-uri name version)) + (sha256 + (base32 + "098gs94qmnspdfn6ar8lycx7dbsz9bcff90aps0cmn47mw7llch0")))) + (build-system python-build-system) + (arguments + `(#:python ,python-2 ; only python-2 is supported. + #:phases + (modify-phases %standard-phases + (add-before 'build 'disable-egg-compression + ;; Do not compress the egg. + (lambda _ + (let ((port (open-file "setup.cfg" "a"))) + (display "\n[easy_install]\nzip_ok = 0\n" + port) + (close-port port) + #t))) + (add-after 'install 'install-doc + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (doc (string-append out "/share/doc/khard"))) + (copy-recursively "misc/khard" doc))))))) + (native-inputs + `(("python2-setuptools" ,python2-setuptools))) + (propagated-inputs + `(("python2-vobject" ,python2-vobject) + ("python2-pyyaml" ,python2-pyyaml) + ("python2-atomicwrites" ,python2-atomicwrites) + ("python2-configobj" ,python2-configobj))) + (synopsis "Console address book using CardDAV") + (description "Khard is an address book for the console. It creates, reads, +modifies and removes CardDAV address book entries at your local machine. For +synchronizing with a remote address book, @command{vdirsyncer} is recommended. +Khard can also be used from within the email client @command{mutt}.") + (home-page "https://github.com/scheibler/khard") + (license gpl3))) ; "later version" never mentioned -- 2.6.3