blob: 3ecf40d1999dedab36f7733fa44d36370eb60037 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# Maintainer: Chih-Hsuan Yen <yan12125@archlinux.org>
pkgname=python-pynamodb
# https://pynamodb.readthedocs.io/en/latest/release_notes.html
# https://github.com/pynamodb/PynamoDB/releases
pkgver=6.0.1
pkgrel=2
pkgdesc="A pythonic interface to Amazon's DynamoDB"
arch=(any)
url='https://pynamodb.readthedocs.io/'
license=(MIT)
makedepends=(python-build python-installer python-setuptools python-wheel)
depends=(python python-botocore)
checkdepends=(python-blinker python-pytest-env python-pytest-mock python-freezegun)
optdepends=(
'python-blinker: for signals'
)
source=("https://github.com/pynamodb/PynamoDB/archive/$pkgver/PynamoDB-$pkgver.tar.gz")
sha256sums=('61dedc9b84835ec7a30bd8ada2d3dcae3f0ef8e91b6a0036c3a99d7f51968d67')
build() {
cd PynamoDB-$pkgver
python -m build --wheel --no-isolation
}
check() {
cd PynamoDB-$pkgver
pytest -m 'not ddblocal' tests
}
package() {
cd PynamoDB-$pkgver
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
}
|