# Contributor: Fabian Affolter # Maintainer: Fabian Affolter pkgname=py3-python-stdnum _pkgname=python-stdnum pkgver=1.17 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" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz lower-coverage.patch " 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 --prefix=/usr --root="$pkgdir" } sha512sums=" 9ddec525ea153e3066f205ee70602a59821e793f9ffde66a4b01511daf9a559a3a42082a99bddf69c1159a27b2d9e64d91f8a65ee283a2d7da473d766ce0e711 python-stdnum-1.17.tar.gz adbdbc93de54af2145e37d790e550e42532dd4b06302ab09047892ffd133cd21c0a3f77522f9ab400db1b5330b676479a01977cedd0e23fe00eb59a325e8dc8e lower-coverage.patch "