From 6d3dda4ff54b3d44c0de560e988d3a44541038b3 Mon Sep 17 00:00:00 2001 From: ng0 Date: Wed, 28 Sep 2016 16:58:29 +0000 Subject: gnu: Add python-mailmanclient. * gnu/packages/mail.scm (python-mailmanclient): New variable. Signed-off-by: Efraim Flashner --- gnu/packages/mail.scm | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) (limited to 'gnu') 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 ;;; Copyright © 2016 Alex Kost ;;; Copyright © 2016 Troy Sankey -;;; Copyright © 2016 ng0 +;;; Copyright © 2016 ng0 ;;; Copyright © 2016 Clément Lassieur ;;; Copyright © 2016 Arun Isaac ;;; Copyright © 2016 John Darrington @@ -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)))))) -- cgit v1.2.3