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

Evangelos Foutras foutrelis at archlinux.org
Thu Nov 12 11:00:57 UTC 2020


    Date: Thursday, November 12, 2020 @ 11:00:56
  Author: foutrelis
Revision: 751559

Fix tests with pytest 6

Modified:
  python-alembic/trunk/PKGBUILD

----------+
 PKGBUILD |   15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-11-12 10:57:20 UTC (rev 751558)
+++ PKGBUILD	2020-11-12 11:00:56 UTC (rev 751559)
@@ -12,13 +12,22 @@
 depends=('python' 'python-mako' 'python-sqlalchemy' 'python-editor' 'python-dateutil')
 makedepends=('python-setuptools' 'python-mako' 'python-sqlalchemy' 'python-editor' 'python-dateutil')
 checkdepends=('python-pytest' 'python-mock')
-source=(https://pypi.org/packages/source/a/alembic/alembic-${pkgver}.tar.gz{,.asc})
+source=(https://pypi.org/packages/source/a/alembic/alembic-${pkgver}.tar.gz{,.asc}
+        $pkgname-pytest6.patch::https://github.com/sqlalchemy/alembic/commit/869094097654.patch)
 sha512sums=('925d8957fd9008d041737a9e79ec8d7a4c5deba1976e980362d355a75348c1638d783d9d48234a5bc3b2dc3f2f09dcb281d0c80ae0f0c5bc32e176c3dfa05463'
-            'SKIP')
+            'SKIP'
+            '9ca880e30f837821c7b237bd9e7db16606817d039434358e8648507ecd94b8431e5e229dc2b208803fae9c4f6b56307a0e69b5ded827658aeb6a1e49d62144cf')
 b2sums=('d9c8b6d6aebce7a45194dd6c654f4a2627714a5c1f7cb7a1cf80ed8c3fe861e3bb7857811128787ddd6c093b4370784b40cddb385cfbd30f6134d537fe949d2d'
-        'SKIP')
+        'SKIP'
+        '6a7a579307a951492191f880419d3e3a7e15bbc1e0c419898aae8ce3e2c342552aa1d82509c48db295c0ddd891b51c34156f030e7a8986c3eebff56647989840')
 validpgpkeys=('83AF7ACE251C13E6BB7DEFBD330239C1C4DAFEE1') # Michael Bayer <classic at zzzcomputing.com>
 
+prepare() {
+  cd alembic-${pkgver}
+  sed -n '/diff --git a\/alembic\/testing/,/elif/p' ../$pkgname-pytest6.patch |
+    patch -Np1
+}
+
 build() {
   echo 'Building python...'
   (cd alembic-${pkgver}



More information about the arch-commits mailing list