summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorkhorben <khorben@pkgsrc.org>2021-05-27 22:25:05 +0000
committerkhorben <khorben@pkgsrc.org>2021-05-27 22:25:05 +0000
commit93b15f8d0d769a38a812e6360f01abe51ef60e7b (patch)
tree767e4eedabea412dd1ba848ec3311ce6b9e17b56 /www
parentce1a1ff1b8565a36c36dcc9bf8627c7787f6b7a6 (diff)
downloadpkgsrc-93b15f8d0d769a38a812e6360f01abe51ef60e7b.tar.gz
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 (limited to 'www')
-rw-r--r--www/py-flask-sendmail/DESCR3
-rw-r--r--www/py-flask-sendmail/Makefile18
-rw-r--r--www/py-flask-sendmail/PLIST19
-rw-r--r--www/py-flask-sendmail/distinfo7
-rw-r--r--www/py-flask-sendmail/patches/patch-flask__sendmail_connection.py15
5 files changed, 62 insertions, 0 deletions
diff --git a/www/py-flask-sendmail/DESCR b/www/py-flask-sendmail/DESCR
new file mode 100644
index 00000000000..faa6a1cf1cb
--- /dev/null
+++ b/www/py-flask-sendmail/DESCR
@@ -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 --git a/www/py-flask-sendmail/Makefile b/www/py-flask-sendmail/Makefile
new file mode 100644
index 00000000000..f2551148218
--- /dev/null
+++ b/www/py-flask-sendmail/Makefile
@@ -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
+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 --git a/www/py-flask-sendmail/PLIST b/www/py-flask-sendmail/PLIST
new file mode 100644
index 00000000000..f13b8acd820
--- /dev/null
+++ b/www/py-flask-sendmail/PLIST
@@ -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 --git a/www/py-flask-sendmail/distinfo b/www/py-flask-sendmail/distinfo
new file mode 100644
index 00000000000..aee8d8eefcd
--- /dev/null
+++ b/www/py-flask-sendmail/distinfo
@@ -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 --git a/www/py-flask-sendmail/patches/patch-flask__sendmail_connection.py b/www/py-flask-sendmail/patches/patch-flask__sendmail_connection.py
new file mode 100644
index 00000000000..3219f908cd6
--- /dev/null
+++ b/www/py-flask-sendmail/patches/patch-flask__sendmail_connection.py
@@ -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