# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=py3-jaraco.functools pkgver=3.8.1 pkgrel=0 pkgdesc="Functools like those found in stdlib" url="https://github.com/jaraco/jaraco.functools" arch="noarch" license="MIT" # py3-setuptools_scm is required to set version of python module depends=" py3-jaraco.classes py3-more-itertools python3 " makedepends=" py3-gpep517 py3-setuptools py3-setuptools_scm py3-wheel " checkdepends="py3-pytest" subpackages="$pkgname-pyc" source="https://pypi.python.org/packages/source/j/jaraco.functools/jaraco.functools-$pkgver.tar.gz" builddir="$srcdir/jaraco.functools-$pkgver" # backwards compatibility for old name replaces="py3-jaraco-functools" provides="py3-jaraco-functools=$pkgver-r$pkgrel" build() { gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } check() { python3 -m venv --clear --without-pip --system-site-packages .testenv .testenv/bin/python3 -m installer .dist/*.whl .testenv/bin/python3 -m pytest } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl } sha512sums=" 0ffd8fc0e973b0ee957cbc074dcae790530c6a944a54ae36e3feee954a59765663b8a734e5c1d1e56975c958b47560eb1f23b510028fee6cf682aeaf175c9460 jaraco.functools-3.8.1.tar.gz "