~dricottone/huttese-apk

ref: 0c937684ca0f86552c958e60b4152fde2cf2ffe9 huttese-apk/sr.ht/py3-iso3166/APKBUILD -rw-r--r-- 806 bytes
0c937684 — Drew DeVault py3-*: bump pkgrel and update upstream versions 3 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=py3-iso3166
_pyname=iso3166
pkgver=1.0.1
pkgrel=5
pkgdesc="Self-contained ISO 3166-1 country definitions for Python"
url="https://github.com/deactivated/python-iso3166"
arch="noarch"
license="MIT"
depends="python3"
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() {
	PYTHONPATH=. pytest-3
}

package() {
	python3 setup.py install --root="$pkgdir" --optimize=1
}

sha512sums="44da1b987f01494fc7874b044fa6b0ed8a888bd159f73ab239f9db35e26c4fd310444164e538166c3804d796c0ab212bb1b1eee02eb3b9b70883d5d2d7ccccc0  iso3166-1.0.1.tar.gz"