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

Evangelos Foutras foutrelis at gemini.archlinux.org
Thu Dec 2 22:00:39 UTC 2021


    Date: Thursday, December 2, 2021 @ 22:00:39
  Author: foutrelis
Revision: 1062770

Fix StringIO wrapper error

Modified:
  python-pytest-flake8/trunk/PKGBUILD

----------+
 PKGBUILD |   10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-02 21:57:06 UTC (rev 1062769)
+++ PKGBUILD	2021-12-02 22:00:39 UTC (rev 1062770)
@@ -8,11 +8,15 @@
 license=('MIT')
 url='https://github.com/tholo/pytest-flake8'
 depends=('python-pytest' 'flake8')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/tholo/pytest-flake8/archive/$pkgver.tar.gz")
-sha512sums=('c71d08eefcafe5503a660d8495c3520a9ae26ba701095c13111b33dc420fed03a2cbffa889eef08488ab5254ed001fd43b3a4757ffa2011cc3b4bd80d078f3c1')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/tholo/pytest-flake8/archive/$pkgver.tar.gz"
+        $pkgname-python310.patch::https://github.com/tholo/pytest-flake8/pull/82.patch)
+sha512sums=('c71d08eefcafe5503a660d8495c3520a9ae26ba701095c13111b33dc420fed03a2cbffa889eef08488ab5254ed001fd43b3a4757ffa2011cc3b4bd80d078f3c1'
+            '7b7e5793216ac2aef35ce96122b99ce63f4e2acbdf9ae5a6d8f5719cafa1e725ac3afa5d1421c106bc1ce3f6d2d6794ff2c98c67204194e4651fc170c52670f1')
 
 prepare() {
-  sed -i 's/ignore = E128/ignore = E128 W605/' pytest-flake8-$pkgver/tox.ini
+  cd pytest-flake8-$pkgver
+  patch -Np1 -i ../$pkgname-python310.patch
+  sed -i 's/ignore = E128/ignore = E128 W605/' tox.ini
 }
 
 build() {



More information about the arch-commits mailing list