# Contributor: Fabian Affolter # Maintainer: Fabian Affolter pkgname=py3-python-stdnum _pkgname=python-stdnum pkgver=1.18 pkgrel=2 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=" ca211fa3f7a0c0a913c5b0c6e32cb477025e203eb4c0a648e47bf95cb361d800d620dc4ebcb3007eefbb5595098486963ffee71ea2c37f84d86443d01131db7c python-stdnum-1.18.tar.gz "