[arch-commits] Commit in python-testtools/trunk (PKGBUILD)

Evangelos Foutras foutrelis at archlinux.org
Wed Nov 11 07:33:02 UTC 2020


    Date: Wednesday, November 11, 2020 @ 07:33:02
  Author: foutrelis
Revision: 749993

Fix tests with Python 3.9

Modified:
  python-testtools/trunk/PKGBUILD

----------+
 PKGBUILD |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-11-11 07:12:33 UTC (rev 749992)
+++ PKGBUILD	2020-11-11 07:33:02 UTC (rev 749993)
@@ -10,12 +10,16 @@
 depends=('python-pbr' 'python-extras' 'python-fixtures' 'python-pyrsistent' 'python-mimeparse')
 makedepends=('python-setuptools')
 checkdepends=('python-testscenarios')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/testing-cabal/testtools/archive/$pkgver.tar.gz")
-sha512sums=('7983c6666b8d4dae3bc4e37d967e09f735d0753a9f517f00e53c4884d86c56d3272bb34d56a8246c74e44cff0087a713973a9cd4aa5d86f9ec8d60e842a6db92')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/testing-cabal/testtools/archive/$pkgver.tar.gz"
+        $pkgname-py39.patch::https://github.com/testing-cabal/testtools/commit/1d698cf91cb2.patch)
+sha512sums=('7983c6666b8d4dae3bc4e37d967e09f735d0753a9f517f00e53c4884d86c56d3272bb34d56a8246c74e44cff0087a713973a9cd4aa5d86f9ec8d60e842a6db92'
+            'a554d49e74f43269a847d767611f86fda655fe9ca27cf182c91975702b6928b4161e12d78283113b88b4d50b9fce240cd4fbf236e884e8b92698bdd512c42598')
 
 export PBR_VERSION=$pkgver
 
 prepare() {
+  patch -Np1 -d testtools-$pkgver <$pkgname-py39.patch
+
   # These are for python 2.x and old python 3.x only
   sed -i 's|unittest2|unittest|' testtools-$pkgver/testtools/tests/test_run.py \
                                  testtools-$pkgver/testtools/tests/test_testsuite.py \


More information about the arch-commits mailing list