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

Felix Yan felixonmars at archlinux.org
Tue Nov 10 04:16:09 UTC 2020


    Date: Tuesday, November 10, 2020 @ 04:16:09
  Author: felixonmars
Revision: 748608

archrelease: copy trunk to community-staging-any

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

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

Copied: python-pynamodb/repos/community-staging-any/PKGBUILD (from rev 748606, python-pynamodb/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-10 04:16:09 UTC (rev 748608)
@@ -0,0 +1,38 @@
+# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
+
+pkgname=python-pynamodb
+pkgver=4.3.3
+pkgrel=2
+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)
+optdepends=(
+  'python-blinker: for signals'
+)
+source=("https://github.com/pynamodb/PynamoDB/archive/$pkgver/PynamoDB-$pkgver.tar.gz")
+sha256sums=('4505cbf5b38b5eb5b90082dbf7b90bd122077f7ead34b4588c5a0b8b18588647')
+
+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