# Contributor: Leo # Maintainer: pkgname=py3-pyrsistent pkgver=0.19.3 pkgrel=1 pkgdesc="Persistent/Functional/Immutable data structures" url="https://github.com/tobgu/pyrsistent" arch="all" license="MIT" depends="python3" makedepends=" py3-gpep517 py3-setuptools py3-wheel python3-dev " checkdepends="py3-hypothesis py3-pytest py3-pytest-runner" subpackages="$pkgname-pyc" source="pyrsistent-$pkgver.tar.gz::https://github.com/tobgu/pyrsistent/archive/v$pkgver.tar.gz" builddir="$srcdir/pyrsistent-$pkgver" provides="py-pyrsistent=$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=" 045d9ca4a2a5c5525887fbbcae77b2bc0271e6a596686ad6281c74fb1f6c8d8a4b0c9444cbd951900d953c61d51cf9452290f1e63e9107f7828bfea6e6b34545 pyrsistent-0.19.3.tar.gz "