diff options
author | Drew DeVault <sir@cmpwn.com> | 2020-10-19 22:23:34 -0400 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2020-10-20 06:20:12 +0000 |
commit | c4e0b4707bd91d6551be4a1b64f7aaabd1238c11 (patch) | |
tree | 9a6cb47f90ca52c0ea0e86dd935a48e357b89571 | |
parent | 097822db17c47430e7b3d56421328d2d8a28f650 (diff) | |
download | aports-c4e0b4707bd91d6551be4a1b64f7aaabd1238c11.tar.gz aports-c4e0b4707bd91d6551be4a1b64f7aaabd1238c11.tar.bz2 aports-c4e0b4707bd91d6551be4a1b64f7aaabd1238c11.tar.xz |
testing/py3-i18naddress: new aport
Address validation helpers for Google's i18n address database
https://github.com/mirumee/google-i18n-address
Co-authored-by: Leo <thinkabit.ukim@gmail.com>
-rw-r--r-- | testing/py3-i18naddress/APKBUILD | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/testing/py3-i18naddress/APKBUILD b/testing/py3-i18naddress/APKBUILD new file mode 100644 index 0000000000..5654c67bac --- /dev/null +++ b/testing/py3-i18naddress/APKBUILD @@ -0,0 +1,30 @@ +# Contributor: Leo <thinkabit.ukim@gmail.com> +# Maintainer: Drew DeVault <sir@cmpwn.com> +pkgname=py3-i18naddress +_pyname=google-i18n-address +pkgver=2.4.0 +pkgrel=0 +pkgdesc="Address validation helpers for Google's i18n address database" +url="https://github.com/mirumee/google-i18n-address" +arch="noarch" +license="BSD-3-Clause" +depends="python3 py3-requests" +makedepends="py3-setuptools" +checkdepends="py3-pytest" +_pypiprefix="${_pyname%${_pyname#?}}" +source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz" +builddir="$srcdir/$_pyname-$pkgver" + +build() { + python3 setup.py build +} + +check() { + py.test-3 +} + +package() { + python3 setup.py install --root="$pkgdir" --optimize=1 +} + +sha512sums="a64e598b838f9d83b70b4f6acb3dc6c8930239e44b726f39a8f973334e2927d0394d1f323ca53acd43f4d9abede2a7ee48427f48a90427cbae7aada4cd8f08a5 google-i18n-address-2.4.0.tar.gz" |