summaryrefslogtreecommitdiff
path: root/testing/py3-python-stdnum/APKBUILD
blob: d930eba453c1439978b20b93c93bde90e1a0ac61 (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
33
34
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-python-stdnum
_pkgname=python-stdnum
pkgver=1.18
pkgrel=1
pkgdesc="Python module to handle standardized numbers and codes"
url="https://arthurdejong.org/python-stdnum"
arch="noarch"
license="LGPL-2.0-or-later"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-coverage py3-nose"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

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

build() {
	python3 setup.py build
}

check() {
	nosetests
}

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

sha512sums="
ca211fa3f7a0c0a913c5b0c6e32cb477025e203eb4c0a648e47bf95cb361d800d620dc4ebcb3007eefbb5595098486963ffee71ea2c37f84d86443d01131db7c  python-stdnum-1.18.tar.gz
"