# Contributor: Kaarle Ritvanen # Maintainer: Kaarle Ritvanen pkgname=py3-django-phonenumber-field pkgver=7.1.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=" c1f2614cbba0f2e2d26f489b9a10acf2c888c21e054a9d1e798b1680adca5bedacebecdaaf62bb486214d81a034ff5704fba7065b7b1f1eefc55f567240af04e django-phonenumber-field-7.1.0.tar.gz "