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

Chih-Hsuan Yen yan12125 at archlinux.org
Sat Dec 7 04:38:13 UTC 2019


    Date: Saturday, December 7, 2019 @ 04:38:13
  Author: yan12125
Revision: 536138

python-moto: backports patches to fix tests

* Switched to GitHub tarballs so that applying upstream patches is easier

Modified:
  python-moto/trunk/PKGBUILD

----------+
 PKGBUILD |   16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-12-07 03:44:03 UTC (rev 536137)
+++ PKGBUILD	2019-12-07 04:38:13 UTC (rev 536138)
@@ -19,15 +19,21 @@
 optdepends=(
   'python-flask: for moto_server'
 )
-source=("https://files.pythonhosted.org/packages/source/m/moto/moto-$pkgver.tar.gz"
-        $pkgname-dynamodb-regions.patch::https://github.com/yan12125/moto/commit/cbd531584cda892b0c022c53fc00c3c28a274abc.patch)
-sha256sums=('79aeaeed1592a24d3c488840065a3fcb3f4fa7ba40259e112482454c0e48a03a'
-            '5fac5e72223682b4c0c186983a307bf8aa82fef7a4049ec93f067e5f13add4db')
+source=("https://github.com/spulec/moto/archive/$pkgver/moto-$pkgver.tar.gz"
+        $pkgname-regions.patch::https://github.com/spulec/moto/commit/bd777cad44dc0c0ec979c366fce228429d182e2f.patch
+        $pkgname-botocore-1.3.21.patch::https://github.com/spulec/moto/commit/4983f6af91c0ef20c997772168f27f988a7ce0e1.patch
+        $pkgname-botocore-1.3.24.patch::https://github.com/spulec/moto/commit/40f241adc212c1c113399534616427d3e2c1d47a.patch)
+sha256sums=('e10412aa495af0f254d3944fd369e75a7c1bcc2f6940a7ea0a0cea34b2f8bf27'
+            'a6020fed84da5c8e7298d3c2750ed33c2b60befe3b9d451432b68d2f030bab93'
+            '74fe4c7610ad805e0fde46fb65bba7c5bbdcc52718e592bd04dd0a834734b64e'
+            'cf4ab97f705bfba537e5e5ac33c820c23c42ba0415ed7e2be670ddb42e6683ff')
 
 prepare() {
   cd $_pkgname-$pkgver
 
-  patch -Np1 -i ../$pkgname-dynamodb-regions.patch
+  patch -Np1 -i ../$pkgname-regions.patch
+  patch -Np1 -i ../$pkgname-botocore-1.3.21.patch
+  patch -Np1 -i ../$pkgname-botocore-1.3.24.patch
 
   # Remove upper bounds of dependencies
   sed --in-place=.orig -r 's#,?<[0-9.]+,?##;s#==([0-9.]+)#>=\1#' setup.py



More information about the arch-commits mailing list