[arch-commits] Commit in python-pynamodb/repos (2 files)
Chih-Hsuan Yen
yan12125 at archlinux.org
Fri Jan 29 13:25:16 UTC 2021
Date: Friday, January 29, 2021 @ 13:25:16
Author: yan12125
Revision: 834675
archrelease: copy trunk to community-testing-any
Added:
python-pynamodb/repos/community-testing-any/
python-pynamodb/repos/community-testing-any/PKGBUILD
(from rev 834674, python-pynamodb/trunk/PKGBUILD)
----------+
PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
Copied: python-pynamodb/repos/community-testing-any/PKGBUILD (from rev 834674, python-pynamodb/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2021-01-29 13:25:16 UTC (rev 834675)
@@ -0,0 +1,39 @@
+# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
+
+pkgname=python-pynamodb
+pkgver=5.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)
+checkdepends=(python-blinker python-pytest-mock)
+optdepends=(
+ 'python-blinker: for signals'
+)
+source=("https://github.com/pynamodb/PynamoDB/archive/$pkgver/PynamoDB-$pkgver.tar.gz")
+sha256sums=('fcb236eb9ccf792587052e9fc411947997e086c4b0ee1a547e774c8f1bb29806')
+
+build() {
+ cd PynamoDB-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd PynamoDB-$pkgver
+
+ # Copied from upstream pytest.ini as pytest-env is not yet packaged
+ export AWS_ACCESS_KEY_ID=1
+ export AWS_SECRET_ACCESS_KEY=2
+
+ pytest -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