aports/community/py3-django-storages/APKBUILD

52 lines
1.3 KiB
Text

# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=py3-django-storages
pkgver=1.14.6
pkgrel=0
pkgdesc="Custom storage backends for Django"
url="https://django-storages.readthedocs.io/"
arch="noarch"
license="BSD-3-Clause"
depends="py3-django"
makedepends="
py3-gpep517
py3-setuptools
py3-wheel
"
checkdepends="
py3-boto3
py3-cryptography
py3-paramiko
py3-pytest-cov
py3-rsa
py3-tox
"
subpackages="$pkgname-pyc"
source="https://github.com/jschneier/django-storages/archive/$pkgver/py3-django-storages-$pkgver.tar.gz"
builddir="$srcdir/django-storages-$pkgver"
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 -m venv --clear --without-pip --system-site-packages .testenv
.testenv/bin/python3 -m installer .dist/*.whl
DJANGO_SETTINGS_MODULE=tests.settings \
.testenv/bin/python3 -m pytest \
--ignore tests/test_azure.py \
--ignore tests/test_dropbox.py \
--ignore tests/test_gcloud.py \
--ignore tests/test_s3.py
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
4736e6314241f9badc0e011be157b14dcda5e5b2c1928fc35d3ae5e5b5ce931d32a118ec9bff61028fb318b70f180e06d230b1139916d20f05ad311ede79065b py3-django-storages-1.14.6.tar.gz
"