aports/community/py3-django-pipeline/APKBUILD

42 lines
1.1 KiB
Plaintext

# Contributor: <xmingske@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=py3-django-pipeline
pkgver=2.1.0
pkgrel=0
pkgdesc="an asset packaging library for Django"
options="!check" # Can't run tests
url="https://github.com/jazzband/django-pipeline"
arch="noarch"
license="JSON"
depends="python3"
makedepends="
py3-gpep517
py3-setuptools_scm
py3-wheel
"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/d/django-pipeline/django-pipeline-$pkgver.tar.gz"
builddir="$srcdir/django-pipeline-$pkgver"
build() {
SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver \
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
testenv/bin/python3 runtests.py
}
package() {
python3 -m installer -d "$pkgdir" \
dist/*.whl
}
sha512sums="
88d109683733b1c21d947ab1326ee0ccbc06fb0510e8dbbf0c9e9d6a3afbfeb26786f13b9e033f7f7b9444c4d23ac298ada55f0457fde78e115bc822be6805f8 django-pipeline-2.1.0.tar.gz
"