aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-vatnumber/APKBUILD
blob: 6bdd0fff670a34a7fb713068b7e9ac20bd712e8a (plain) (blame)
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
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-vatnumber
_pkgname=vatnumber
pkgver=1.2
pkgrel=2
pkgdesc="A Python module to validate VAT numbers"
options="!check" # Requres unpackaged 'suds'
url="https://code.google.com/p/vatnumber/"
arch="noarch"
license="GPL-3.0-or-later"
depends="python3 py3-python-stdnum"
makedepends="py3-setuptools"
checkdepends="py3-pysimplesoap"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"

builddir="$srcdir"/$_pkgname-$pkgver

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

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

sha512sums="708b73f8d059638c165663f8b36dd8602c0aa857be456e50690dd61c09b9a8a2e560bf2a3ed89a790670c93f5b84c5a391cef748bebf0fa978a6fe5e319a541f  vatnumber-1.2.tar.gz"