mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-16 20:55:20 +03:00
42 lines
1.2 KiB
Text
42 lines
1.2 KiB
Text
# Contributor: Kaarle Ritvanen <kunkku@alpinelinux.org>
|
|
# Maintainer: Kaarle Ritvanen <kunkku@alpinelinux.org>
|
|
pkgname=py3-django-phonenumber-field
|
|
pkgver=8.0.0
|
|
pkgrel=0
|
|
pkgdesc="An international phone number field for django models"
|
|
url="https://github.com/stefanfoulis/django-phonenumber-field"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="py3-babel py3-django py3-phonenumbers"
|
|
makedepends="
|
|
py3-gpep517
|
|
py3-setuptools
|
|
py3-setuptools_scm
|
|
py3-wheel
|
|
"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://files.pythonhosted.org/packages/source/d/django_phonenumber_field/django_phonenumber_field-$pkgver.tar.gz"
|
|
builddir="$srcdir/django_phonenumber_field-$pkgver"
|
|
options="!check" # test fails. its unclear how tests are supposed to be executed
|
|
|
|
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="
|
|
047ea5b35b52f46e905bdbad6f18ba96f24d4aa89dc7022390b5d15b691998f0155aa819f4529fe9b58174ec19db9a692423fb15915f66ea9eaa4c5397fb4a90 django_phonenumber_field-8.0.0.tar.gz
|
|
"
|