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

Chih-Hsuan Yen yan12125 at archlinux.org
Fri Aug 16 02:15:13 UTC 2019


    Date: Friday, August 16, 2019 @ 02:15:12
  Author: yan12125
Revision: 499658

archrelease: copy trunk to community-testing-any

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

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

Copied: python-pynamodb/repos/community-testing-any/PKGBUILD (from rev 499657, python-pynamodb/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2019-08-16 02:15:12 UTC (rev 499658)
@@ -0,0 +1,35 @@
+# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
+
+pkgname=python-pynamodb
+pkgver=4.0.0
+pkgrel=1
+pkgdesc="A pythonic interface to Amazon's DynamoDB"
+arch=(any)
+url='https://pynamodb.readthedocs.io/'
+license=(MIT)
+makedepends=(python-setuptools)
+depends=(python-botocore python-dateutil python-six)
+checkdepends=(python-blinker python-mock python-pytest-mock python-requests)
+source=("https://github.com/pynamodb/PynamoDB/archive/$pkgver/PynamoDB-$pkgver.tar.gz")
+sha256sums=('b532687ce885bba520e1088130419d98710a1bbacbec508f43d16f4c983e0cbf')
+
+build() {
+  cd PynamoDB-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd PynamoDB-$pkgver
+
+  export AWS_SECRET_ACCESS_KEY=fake_key
+  export AWS_ACCESS_KEY_ID=fake_id
+
+  pytest -v -m 'not ddblocal' tests
+}
+
+package() {
+  cd PynamoDB-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
+}



More information about the arch-commits mailing list