[arch-commits] Commit in python-aiobotocore/repos (2 files)

Chih-Hsuan Yen yan12125 at gemini.archlinux.org
Tue Nov 9 15:25:31 UTC 2021


    Date: Tuesday, November 9, 2021 @ 15:25:31
  Author: yan12125
Revision: 1039360

archrelease: copy trunk to community-testing-any

Added:
  python-aiobotocore/repos/community-testing-any/
  python-aiobotocore/repos/community-testing-any/PKGBUILD
    (from rev 1039359, python-aiobotocore/trunk/PKGBUILD)

----------+
 PKGBUILD |   48 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)

Copied: python-aiobotocore/repos/community-testing-any/PKGBUILD (from rev 1039359, python-aiobotocore/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2021-11-09 15:25:31 UTC (rev 1039360)
@@ -0,0 +1,48 @@
+# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
+
+pkgname=python-aiobotocore
+_pkgname=aiobotocore
+# https://github.com/aio-libs/aiobotocore/releases
+pkgver=2.0.0
+pkgrel=1
+pkgdesc='asyncio support for botocore library using aiohttp'
+arch=(any)
+url='https://github.com/aio-libs/aiobotocore'
+license=(Apache)
+depends=(python python-aiohttp python-botocore python-wrapt python-aioitertools)
+makedepends=(python-setuptools)
+checkdepends=(python-moto python-pytest python-pytest-asyncio
+              # moto optdepends
+              python-docker python-yaml python-flask python-flask-cors)
+source=("https://github.com/aio-libs/aiobotocore/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha256sums=('be7758c3f4a7d4b922e71cbedb7e6a73dd3d795b95b177201a5bd557062016da')
+
+prepare() {
+  cd $_pkgname-$pkgver
+
+  # Disable dependency pinning
+  # Upstream tracking issue: https://github.com/aio-libs/aiobotocore/issues/670
+  sed --in-place=.orig -r "s#'(botocore.*),<.*',#'\1',#" setup.py
+  diff -u setup.py{.orig,} || true
+}
+
+build() {
+  cd $_pkgname-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd $_pkgname-$pkgver
+
+  export PYTHONPATH="$PWD"
+  # test_lambda uses moto.awslambda, which requires a running Docker service
+  # See: https://github.com/spulec/moto/issues/3276
+  pytest -m moto tests \
+      --ignore=tests/test_patches.py \
+      --ignore=tests/test_lambda.py
+}
+
+package() {
+  cd $_pkgname-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}



More information about the arch-commits mailing list