# Maintainer: Luis Martinez # Contributor: Clint Valentine pkgname=python-typechecks _pkg="${pkgname#python-}" pkgver=0.1.0 pkgrel=2 pkgdesc="Helper functions for runtime type checking" arch=('any') url="https://pypi.org/project/typechecks" license=('Apache') depends=('python') makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel') checkdepends=('python-nose') source=("$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/${_pkg::1}/$_pkg/$_pkg-$pkgver.tar.gz") sha256sums=('7d801a6018f60d2a10aa3debc3af65f590c96c455de67159f39b9b183107c83b') build(){ cd "$_pkg-$pkgver" python -m build --wheel --no-isolation } check() { cd "$_pkg-$pkgver" nosetests } package() { cd "$_pkg-$pkgver" PYTHONHASHSEED=0 python -m installer --destdir="$pkgdir" dist/*.whl }