Date: Sunday, April 9, 2023 @ 04:08:41
  Author: felixonmars
Revision: 1443082

archrelease: copy trunk to community-staging-any

Added:
  python-flask-mail/repos/community-staging-any/
  python-flask-mail/repos/community-staging-any/PKGBUILD
    (from rev 1443077, python-flask-mail/trunk/PKGBUILD)
  python-flask-mail/repos/community-staging-any/unittest-mock.patch
    (from rev 1443077, python-flask-mail/trunk/unittest-mock.patch)

---------------------+
 PKGBUILD            |   48 ++++++++++++++++++++++++++++++++++++++++++++++++
 unittest-mock.patch |   37 +++++++++++++++++++++++++++++++++++++
 2 files changed, 85 insertions(+)

Copied: python-flask-mail/repos/community-staging-any/PKGBUILD (from rev 
1443077, python-flask-mail/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-09 04:08:41 UTC (rev 1443082)
@@ -0,0 +1,48 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+_pkgname=flask-mail
+pkgname=python-flask-mail
+pkgver=0.9.1
+pkgrel=10
+pkgdesc='Flask extension providing simple email sending capabilities'
+url='https://pythonhosted.org/Flask-Mail/'
+arch=('any')
+license=('BSD')
+depends=('python' 'python-flask' 'python-blinker')
+makedepends=('python-sphinx' 'python-setuptools')
+checkdepends=('python-nose' 'python-blinker' 'python-speaklater')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/mattupstate/flask-mail/archive/${pkgver}.tar.gz
+        
${pkgname}-fix-headers-for-attachments.patch::https://github.com/mattupstate/flask-mail/commit/e195fca6de1077cabb711426e6378f51dc39d598.patch
+        unittest-mock.patch)
+sha512sums=('1cf45ee734b35bf05862a4e88070a743a7d3cc877e4dcdc55f5e0a9642631752c4bf1e23065212157e71e42c5fdb010de8a68b4ab9f8444f9fa096d62a7aad3d'
+            
'7e85212c213307ede608f57e00f3a7109408216d999ed6823caad758231aaac5493dbab9a625d46f4a42278641f8d56aa3733fc9f87bb4b912b87a62b16e6814'
+            
'6829afa8b22b80918a0a633e86accdfb10fe37ea5087de369bf0ae89bed65e6907ee9c8e22ab18497cff4cba4d60a25892d2fa0c3c8b3ab33cf8fd325620ff3a')
+
+prepare() {
+  cd ${_pkgname}-${pkgver}
+  patch -Np1 < ../unittest-mock.patch
+  patch -Np1 < ../${pkgbase}-fix-headers-for-attachments.patch
+}
+
+build() {
+  cd ${_pkgname}-${pkgver}
+  python setup.py build
+  sphinx-build -b text docs docs/_build/text
+  sphinx-build -b man docs docs/_build/man
+}
+
+check() {
+  cd ${_pkgname}-${pkgver}
+  nosetests
+}
+
+package() {
+  cd ${_pkgname}-${pkgver}
+  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+  install -Dm 644 README.rst CHANGES -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -Dm 644 docs/_build/text/*.txt -t 
"${pkgdir}/usr/share/doc/${pkgname}"
+  install -Dm 644 docs/_build/man/flask-mail.1 
"${pkgdir}/usr/share/man/man1/${pkgname}.1"
+}
+
+# vim: ts=2 sw=2 et:

Copied: python-flask-mail/repos/community-staging-any/unittest-mock.patch (from 
rev 1443077, python-flask-mail/trunk/unittest-mock.patch)
===================================================================
--- community-staging-any/unittest-mock.patch                           (rev 0)
+++ community-staging-any/unittest-mock.patch   2023-04-09 04:08:41 UTC (rev 
1443082)
@@ -0,0 +1,37 @@
+diff -aur flask-mail-0.9.1/setup.py flask-mail-0.9.1.new/setup.py
+--- flask-mail-0.9.1/setup.py  2014-09-29 01:35:16.000000000 +0200
++++ flask-mail-0.9.1.new/setup.py      2022-11-12 22:51:06.794782737 +0100
+@@ -39,7 +39,6 @@
+         'nose',
+         'blinker',
+         'speaklater',
+-        'mock',
+     ],
+     classifiers=[
+         'Development Status :: 4 - Beta',
+Only in flask-mail-0.9.1: setup.py.rej
+diff -aur flask-mail-0.9.1/tests.py flask-mail-0.9.1.new/tests.py
+--- flask-mail-0.9.1/tests.py  2014-09-29 01:35:16.000000000 +0200
++++ flask-mail-0.9.1.new/tests.py      2022-11-12 22:51:15.748304470 +0100
+@@ -7,7 +7,7 @@
+ import unittest
+ import time
+ import re
+-import mock
++from unittest import mock
+ from contextlib import contextmanager
+ 
+ from email.header import Header
+Only in flask-mail-0.9.1: tests.py.rej
+diff -aur flask-mail-0.9.1/tox.ini flask-mail-0.9.1.new/tox.ini
+--- flask-mail-0.9.1/tox.ini   2014-09-29 01:35:16.000000000 +0200
++++ flask-mail-0.9.1.new/tox.ini       2022-11-12 22:51:41.515512656 +0100
+@@ -3,7 +3,6 @@
+ 
+ [testenv]
+ deps =
+-    mock
+     nose
+     speaklater
+ 
+Only in flask-mail-0.9.1: tox.ini.rej

Reply via email to