aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-ukpostcodeparser/APKBUILD
blob: 2f7aae7208309365054aedd2c55c5ad5ae0a6912 (plain)
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
30
31
32
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=py3-ukpostcodeparser
_pkgname=ukpostcodeparser
pkgver=1.1.2
pkgrel=3
pkgdesc="UK Postcode parser"
url="https://github.com/hamstah/ukpostcodeparser"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://github.com/hamstah/$_pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
# tests broken upstream: https://github.com/hamstah/ukpostcodeparser/issues/8
options="!check"

replaces="py-ukpostcodeparser" # Backwards compatibility
provides="py-ukpostcodeparser=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="8113522b728c095f937a9f53f21c369130e3e63c4fc3546dbea4ad1c53648742fb0e766b1254c76ee65d69dec585f1a90caa7d39ca540de1765ff5f989a702de  py3-ukpostcodeparser-1.1.2.tar.gz"