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

Johannes Löthberg demize at gemini.archlinux.org
Wed Dec 1 23:06:38 UTC 2021


    Date: Wednesday, December 1, 2021 @ 23:06:37
  Author: demize
Revision: 1061515

Apply patch fixing tests under Python 3.10

Modified:
  python-testfixtures/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-01 23:02:26 UTC (rev 1061514)
+++ PKGBUILD	2021-12-01 23:06:37 UTC (rev 1061515)
@@ -11,9 +11,16 @@
 makedepends=('python-setuptools')
 checkdepends=('python-pytest-runner' 'python-zope-component' 'python-sybil'
               'python-pytest-django' 'python-django' 'python-twisted')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/Simplistix/testfixtures/archive/$pkgver.tar.gz")
-sha512sums=('1fdd3e8a9dc39be00ebb707c4febb30f4975e7c2c83d6edead14f180bb6171b8cd2625acf0f6285c1ecf5ea56ee3c1e40317a9c47fa0b01fd525303816ced69c')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/Simplistix/testfixtures/archive/$pkgver.tar.gz"
+        'tests-fix-with-python-3-10.patch::https://github.com/simplistix/testfixtures/commit/8fb2122eea0f1d0de1ccca7a3a0f5426bc6d4964.patch')
+sha512sums=('1fdd3e8a9dc39be00ebb707c4febb30f4975e7c2c83d6edead14f180bb6171b8cd2625acf0f6285c1ecf5ea56ee3c1e40317a9c47fa0b01fd525303816ced69c'
+            'd91b46005525cbefa2100eee25720b1229c6ca8213aaf36578635ffc82edc50aeef278d8e009d13bdb14ab791d7969b5fd39ae70fb2becce8f255edee1256792')
 
+prepare() {
+  cd "$srcdir"/testfixtures-$pkgver
+  patch -p1 <"$srcdir"/tests-fix-with-python-3-10.patch
+}
+
 build() {
   cd "$srcdir"/testfixtures-$pkgver
   python setup.py build



More information about the arch-commits mailing list