1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 03:35:38 +03:00
aports/community/py3-dj-database-url/APKBUILD

43 lines
1.2 KiB
Text

# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=py3-dj-database-url
pkgver=3.0.0
pkgrel=0
pkgdesc="Use Database URLs in your Django Application"
url="https://pypi.org/project/dj-database-url/"
arch="noarch"
license="BSD-3-Clause"
depends="py3-django"
makedepends="
py3-gpep517
py3-setuptools
py3-wheel
"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="https://github.com/jazzband/dj-database-url/archive/v$pkgver/py3-dj-database-url-$pkgver.tar.gz
typing-ext.patch
"
builddir="$srcdir/dj-database-url-$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
.testenv/bin/python3 -m pytest
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
c52fea667989c1b2c30d6f7e492a6260be331393673ff2a67d8ae9d2fb109e0625d896097b074daa23a57b4123ed5bb4cf40c3fe206ccde3e844a7f39a9eca5b py3-dj-database-url-3.0.0.tar.gz
c5c659d23972e8c90f154ea7a92f15213f6a385008d3721ed17b6e15fcf87b50b7eaac8f7a66f60e0c187b5d0bb21bbe9c0c88bae56a2a17c15ac425824b301c typing-ext.patch
"