diff options
Diffstat (limited to 'community/py3-pycountry/APKBUILD')
-rw-r--r-- | community/py3-pycountry/APKBUILD | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/community/py3-pycountry/APKBUILD b/community/py3-pycountry/APKBUILD new file mode 100644 index 0000000000..17f3694d3f --- /dev/null +++ b/community/py3-pycountry/APKBUILD @@ -0,0 +1,32 @@ +# Contributor: Francesco Colista <francesco.colista@gmail.com> +# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> +pkgname=py3-pycountry +_pkgname=pycountry +pkgver=19.8.18 +pkgrel=1 +pkgdesc="ISO country, subdivision, language, currency and script definitions and their translations" +url="https://pypi.org/project/pycountry" +arch="noarch" +license="LGPL-2.1-only" +depends="python3" +makedepends="py3-setuptools" +checkdepends="py3-pytest" +source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" +builddir="$srcdir"/$_pkgname-$pkgver + +replaces="py-country py-pycountry" # Backwards compatibility +provides="py-country=$pkgver-r$pkgrel py-pycountry=$pkgver-r$pkgrel" # Backwards compatibility + +build() { + python3 setup.py build +} + +check() { + PYTHONPATH="$builddir/build/lib" py.test-3 -v +} + +package() { + python3 setup.py install --prefix=/usr --root="$pkgdir" +} + +sha512sums="39ba06629eeea55460424d06992ca5f1e5bf6168b219dc4880ec326f6aa0c92a4fdc54d4143a8b8bb1490149af793e760e291c6d704104a57ba91e88228ab669 pycountry-19.8.18.tar.gz" |