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

Evangelos Foutras foutrelis at gemini.archlinux.org
Wed Dec 1 20:44:42 UTC 2021


    Date: Wednesday, December 1, 2021 @ 20:44:41
  Author: foutrelis
Revision: 1060710

Fix tests with Python 3.10

Modified:
  python-testtools/trunk/PKGBUILD

----------+
 PKGBUILD |   11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-01 20:42:53 UTC (rev 1060709)
+++ PKGBUILD	2021-12-01 20:44:41 UTC (rev 1060710)
@@ -10,11 +10,18 @@
 depends=('python-pbr' 'python-extras' 'python-fixtures')
 makedepends=('python-setuptools')
 checkdepends=('python-testscenarios')
-source=("https://github.com/testing-cabal/testtools/archive/$pkgver/$pkgname-$pkgver.tar.gz")
-sha512sums=('81e2a31f34461aefa52a553966deb979e2cc8632c0fe2b87640925958d403598e45a3a16eb35d583894fac507670b349cebae002ae5376185e86032ebfb5da80')
+source=("https://github.com/testing-cabal/testtools/archive/$pkgver/$pkgname-$pkgver.tar.gz"
+        $pkgname-python310.patch::https://github.com/testing-cabal/testtools/commit/ec9bb7ed0265.patch)
+sha512sums=('81e2a31f34461aefa52a553966deb979e2cc8632c0fe2b87640925958d403598e45a3a16eb35d583894fac507670b349cebae002ae5376185e86032ebfb5da80'
+            'd1e9763a3fa5ef66666f28687e5c798c2d92c6eb73f702f216b125ef15f5eb10e100da8836e81a6dc0748f1cb8887c92647a29f0e615413d5c371653910f0573')
 
 export PBR_VERSION=$pkgver
 
+prepare() {
+  cd testtools-$pkgver
+  patch -Np1 -i ../$pkgname-python310.patch
+}
+
 build() {
   cd testtools-$pkgver
   python setup.py build



More information about the arch-commits mailing list