# Contributor: Fabian Affolter # Maintainer: Fabian Affolter pkgname=py3-python-stdnum _pkgname=python-stdnum pkgver=1.19 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 py3-gpep517" 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() { gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } check() { python3 -m venv --clear --without-pip --system-site-packages .testenv gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl .testenv/bin/python3 -m nose } package() { gpep517 install-wheel --destdir "$pkgdir" \ .dist/*.whl } sha512sums=" 02c56aea710a9a02e14160840fbd45751cd00f1a49b1d046124945ba92e2dd3377006f44a146030522d09b92f809ceb4d1e3589ef3d9c9302f7674a79602ef07 python-stdnum-1.19.tar.gz "