aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorng0 <ngillmann@runbox.com>2016-09-28 16:58:29 +0000
committerEfraim Flashner <efraim@flashner.co.il>2016-10-20 11:47:12 +0300
commit6d3dda4ff54b3d44c0de560e988d3a44541038b3 (patch)
treebec826fba3b663a39305557b5e3c1a2d7bf0ea98 /gnu
parent162e42d8c0664f3730be33e8a9526e07a4218254 (diff)
downloadpatches-6d3dda4ff54b3d44c0de560e988d3a44541038b3.tar
patches-6d3dda4ff54b3d44c0de560e988d3a44541038b3.tar.gz
gnu: Add python-mailmanclient.
* gnu/packages/mail.scm (python-mailmanclient): New variable. Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/mail.scm34
1 files changed, 33 insertions, 1 deletions
diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index 279ebb242c..7ac2ada64d 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -15,7 +15,7 @@
;;; Copyright © 2016 Lukas Gradl <lgradl@openmailbox.org>
;;; Copyright © 2016 Alex Kost <alezost@gmail.com>
;;; Copyright © 2016 Troy Sankey <sankeytms@gmail.com>
-;;; Copyright © 2016 ng0 <ng0@we.make.ritual.n0.is>
+;;; Copyright © 2016 ng0 <ngillmann@runbox.com>
;;; Copyright © 2016 Clément Lassieur <clement@lassieur.org>
;;; Copyright © 2016 Arun Isaac <arunisaac@systemreboot.net>
;;; Copyright © 2016 John Darrington <jmd@gnu.org>
@@ -1688,3 +1688,35 @@ e-mails with other systems speaking the SMTP protocol.")
"This package provides extra tables, filters, and various other addons
for OpenSMTPD to extend its functionality.")
(home-page "https://www.opensmtpd.org")))
+
+(define-public python-mailmanclient
+ (package
+ (name "python-mailmanclient")
+ (version "1.0.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "mailmanclient" version))
+ (sha256
+ (base32
+ "1cfjh45fgbsax5hjj2inq9nk33dhdvh63xhysc8dhnqidgqgm8c5"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:tests? #f)) ; Requires mailman running
+ (inputs
+ `(("python-six" ,python-six)
+ ("python-httplib2" ,python-httplib2)))
+ (home-page "https://launchpad.net/mailman.client")
+ (synopsis "Python bindings for the Mailman 3 REST API")
+ (description
+ "The mailmanclient library provides official Python bindings for
+the GNU Mailman 3 REST API.")
+ (properties `((python2-variant . ,(delay python2-mailmainclient))))
+ (license lgpl3+)))
+
+(define-public python2-mailmanclient
+ (let ((base (package-with-python2
+ (strip-python2-variant python-mailmanclient))))
+ (package (inherit base)
+ (native-inputs
+ `(("python2-setuptools" ,python2-setuptools))))))