[arch-commits] Commit in python-pynamodb/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Wed Dec 1 14:58:33 UTC 2021
Date: Wednesday, December 1, 2021 @ 14:58:33
Author: felixonmars
Revision: 1059633
archrelease: copy trunk to community-staging-any
Added:
python-pynamodb/repos/community-staging-any/
python-pynamodb/repos/community-staging-any/PKGBUILD
(from rev 1059632, python-pynamodb/trunk/PKGBUILD)
----------+
PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
Copied: python-pynamodb/repos/community-staging-any/PKGBUILD (from rev 1059632, python-pynamodb/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2021-12-01 14:58:33 UTC (rev 1059633)
@@ -0,0 +1,39 @@
+# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
+
+pkgname=python-pynamodb
+pkgver=5.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)
+checkdepends=(python-blinker python-pytest-mock)
+optdepends=(
+ 'python-blinker: for signals'
+)
+source=("https://github.com/pynamodb/PynamoDB/archive/$pkgver/PynamoDB-$pkgver.tar.gz")
+sha256sums=('8735197edec9f0163d2c398506aa79ef113d5ac917b492e8dc8dbe3f80cdfa91')
+
+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