# Maintainer: Pedro Filipe pkgname=py3-patiencediff pkgver=0.2.13 pkgrel=1 pkgdesc="Patiencediff Python and C implementations" url="https://www.breezy-vcs.org/" arch="all" license="GPL-2.0-or-later" depends="python3" makedepends=" py3-gpep517 py3-setuptools py3-wheel python3-dev " subpackages="$pkgname-pyc" source="$pkgname-$pkgver.tar.gz::https://github.com/breezy-team/patiencediff/archive/v$pkgver.tar.gz" builddir="$srcdir/patiencediff-$pkgver" 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 unittest discover } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl } sha512sums=" b06d7ee6183169cdc9912dbfa02c09fef963b6840a3fae24096e7f0be1356dd6eea283ade528a9195b9e9f7ff1eb8f5047aeaa770a9dc7ba39337fa735a02b7a py3-patiencediff-0.2.13.tar.gz "