[arch-commits] Commit in python-pynamodb/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Sat Oct 26 20:28:27 UTC 2019
Date: Saturday, October 26, 2019 @ 20:28:26
Author: foutrelis
Revision: 520553
archrelease: copy trunk to community-staging-any
Added:
python-pynamodb/repos/community-staging-any/
python-pynamodb/repos/community-staging-any/PKGBUILD
(from rev 520552, python-pynamodb/trunk/PKGBUILD)
----------+
PKGBUILD | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
Copied: python-pynamodb/repos/community-staging-any/PKGBUILD (from rev 520552, python-pynamodb/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-26 20:28:26 UTC (rev 520553)
@@ -0,0 +1,35 @@
+# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
+
+pkgname=python-pynamodb
+pkgver=4.1.0
+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)
+source=("https://github.com/pynamodb/PynamoDB/archive/$pkgver/PynamoDB-$pkgver.tar.gz")
+sha256sums=('978ddaabcd0c95de00903c718331e016d9d1e12c7a7fe2a2c73ebc2eefaaca58')
+
+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