pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/py-flask-sendmail py-flask-sendmail: import versio...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a9f13a09d38f
branches:  trunk
changeset: 453320:a9f13a09d38f
user:      khorben <khorben%pkgsrc.org@localhost>
date:      Thu May 27 22:25:05 2021 +0000

description:
py-flask-sendmail: import version 0.1

The Flask-Sendmail extension provides a simple interface to your system's
sendmail client from within your Flask application and gives you ability to send
messages from your views and scripts.

diffstat:

 www/py-flask-sendmail/DESCR                                       |   3 +
 www/py-flask-sendmail/Makefile                                    |  18 +++++++++
 www/py-flask-sendmail/PLIST                                       |  19 ++++++++++
 www/py-flask-sendmail/distinfo                                    |   7 +++
 www/py-flask-sendmail/patches/patch-flask__sendmail_connection.py |  15 +++++++
 5 files changed, 62 insertions(+), 0 deletions(-)

diffs (82 lines):

diff -r 5a489ebd5684 -r a9f13a09d38f www/py-flask-sendmail/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/py-flask-sendmail/DESCR       Thu May 27 22:25:05 2021 +0000
@@ -0,0 +1,3 @@
+The Flask-Sendmail extension provides a simple interface to your system's
+sendmail client from within your Flask application and gives you ability to send
+messages from your views and scripts.
diff -r 5a489ebd5684 -r a9f13a09d38f www/py-flask-sendmail/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/py-flask-sendmail/Makefile    Thu May 27 22:25:05 2021 +0000
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2021/05/27 22:25:05 khorben Exp $
+
+DISTNAME=      Flask-Sendmail-0.1
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:tl}
+CATEGORIES=    www python
+MASTER_SITES=  ${MASTER_SITE_PYPI:=F/Flask-Sendmail/}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/ajford/flask-sendmail
+COMMENT=       Flask extension to send mails with sendmail
+LICENSE=       modified-bsd
+
+USE_LANGUAGES= # empty
+
+DEPENDS+=      ${PYPKGPREFIX}-flask-[0-9]*:../../www/py-flask
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 5a489ebd5684 -r a9f13a09d38f www/py-flask-sendmail/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/py-flask-sendmail/PLIST       Thu May 27 22:25:05 2021 +0000
@@ -0,0 +1,19 @@
+@comment $NetBSD: PLIST,v 1.1 2021/05/27 22:25:05 khorben Exp $
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
+${PYSITELIB}/${EGG_INFODIR}/requires.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/flask_sendmail/__init__.py
+${PYSITELIB}/flask_sendmail/__init__.pyc
+${PYSITELIB}/flask_sendmail/__init__.pyo
+${PYSITELIB}/flask_sendmail/connection.py
+${PYSITELIB}/flask_sendmail/connection.pyc
+${PYSITELIB}/flask_sendmail/connection.pyo
+${PYSITELIB}/flask_sendmail/mail.py
+${PYSITELIB}/flask_sendmail/mail.pyc
+${PYSITELIB}/flask_sendmail/mail.pyo
+${PYSITELIB}/flask_sendmail/message.py
+${PYSITELIB}/flask_sendmail/message.pyc
+${PYSITELIB}/flask_sendmail/message.pyo
diff -r 5a489ebd5684 -r a9f13a09d38f www/py-flask-sendmail/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/py-flask-sendmail/distinfo    Thu May 27 22:25:05 2021 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2021/05/27 22:25:05 khorben Exp $
+
+SHA1 (Flask-Sendmail-0.1.tar.gz) = 6ac44c275a3d9dce4ed3d028335537ed19e67cef
+RMD160 (Flask-Sendmail-0.1.tar.gz) = 7b79b89250b9376ff5f9f2f1d1b3b0508c861a6a
+SHA512 (Flask-Sendmail-0.1.tar.gz) = c341d841a5ea2ff06d60361bf323fd3d9bce1b332143da415534e9176d797fbd5bd59ea9b7563a81e35dbe93dcbb6d957f02df61bd191b385eb834638133aecd
+Size (Flask-Sendmail-0.1.tar.gz) = 3410 bytes
+SHA1 (patch-flask__sendmail_connection.py) = 8ec1db04739ffe9d41006c68b3670f97a39ae8cc
diff -r 5a489ebd5684 -r a9f13a09d38f www/py-flask-sendmail/patches/patch-flask__sendmail_connection.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/py-flask-sendmail/patches/patch-flask__sendmail_connection.py Thu May 27 22:25:05 2021 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-flask__sendmail_connection.py,v 1.1 2021/05/27 22:25:05 khorben Exp $
+
+Fix type error when sending messages
+
+--- flask_sendmail/connection.py.orig  2012-04-23 02:11:53.000000000 +0000
++++ flask_sendmail/connection.py
+@@ -20,7 +20,7 @@ class Connection(object):
+     def send(self, message):
+         sm = Popen([self.mail.mailer, self.mail.mailer_flags], stdin=PIPE,
+                    stdout=PIPE, stderr=STDOUT)
+-        sm.stdin.write(message.dump())
++        sm.stdin.write(message.dump().encode())
+         sm.communicate()
+ 
+         return sm.returncode



Home | Main Index | Thread Index | Old Index