1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-16 20:55:20 +03:00
aports/testing/py3-python-stdnum/APKBUILD
2023-08-22 05:23:19 +00:00

35 lines
1,020 B
Text

# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-python-stdnum
_pkgname=python-stdnum
pkgver=1.19
pkgrel=0
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"
subpackages="$pkgname-pyc"
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="
02c56aea710a9a02e14160840fbd45751cd00f1a49b1d046124945ba92e2dd3377006f44a146030522d09b92f809ceb4d1e3589ef3d9c9302f7674a79602ef07 python-stdnum-1.19.tar.gz
"