Date: Sunday, November 10, 2019 @ 07:09:12
  Author: felixonmars
Revision: 524929

add test fixes for python 3.8

Modified:
  alot/trunk/PKGBUILD

----------+
 PKGBUILD |   15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2019-11-10 06:50:19 UTC (rev 524928)
+++ PKGBUILD    2019-11-10 07:09:12 UTC (rev 524929)
@@ -14,12 +14,14 @@
 depends=('desktop-file-utils' 'notmuch' 'python-configobj' 'python-gpgme'
          'python-magic' 'python-setuptools' 'python-twisted' 'python-urwid'
          'python-urwidtrees')
-makedepends=('python-sphinx')
-checkdepends=('python-mock')
+makedepends=('python-sphinx' 'git')
+checkdepends=('python-mock' 'procps-ng')
 source=("$url/archive/$pkgver/alot-$pkgver.tar.gz"
-        
"alot-$pkgver.tar.gz.asc::$url/releases/download/$pkgver/$pkgver.tar.gz.asc")
+        
"alot-$pkgver.tar.gz.asc::$url/releases/download/$pkgver/$pkgver.tar.gz.asc"
+        
gpg-test-fix.patch::https://github.com/pazz/alot/commit/3446dc44f87d34205b70f44d6ffec9f90b53d77f.patch)
 
sha512sums=('bca4a01636594f0e71c6ea260d74cf26e74dfd7aca1ea7801714b4aaf9602ae7737769e77e3af0363ed2701df1494e0f87ce85b58c47a6380ad1a9098f8501d4'
-            'SKIP')
+            'SKIP'
+            
'c17af3dc44256b187eb497c1762a2afeb841d4bdd4c7b125ec9ff4293c81d913dbae01fe10534ed8d11f421235e1bfb46872354e49ba8d7942dfc5599f16cb96')
 validpgpkeys=('B7838D65FEE80DED1DCA494D94340367D7D6C5AA') # Patrick Totzke
 
 # The Arch Linux package python-magic's egg calls itself "file-magic",
@@ -27,6 +29,11 @@
 prepare() {
   cd alot-$pkgver
   sed -i 's/python-magic/file-magic/' setup.py
+  
+  # https://github.com/pazz/alot/pull/1415
+  git apply ../gpg-test-fix.patch
+  # https://github.com/pazz/alot/pull/1451
+  sed -i '/def doClassCleanups/a\        cls.tearDown_exceptions = []' 
tests/utilities.py
 }
 
 build() {

Reply via email to