# Maintainer: Pedro Filipe pkgname=breezy pkgver=3.3.2 pkgrel=0 pkgdesc="Decentralized revision control system" url="https://www.breezy-vcs.org/" arch="all" license="GPL-2.0-or-later" depends="python3 py3-configobj py3-dulwich py3-patiencediff" makedepends=" cython py3-gpep517 py3-setuptools py3-setuptools-gettext py3-setuptools-rust py3-wheel python3-dev " checkdepends="py3-subunit py3-testtools" options="!check" # Requires unittest2 subpackages="$pkgname-pyc" source="https://launchpad.net/brz/${pkgver%.*}/$pkgver/+download/breezy-$pkgver.tar.gz" prepare() { default_prepare # Requires launchpadlib rm -rf breezy/plugins/launchpad/ } 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 ln -s brz "$pkgdir"/usr/bin/bzr # backwards compatibility find "$pkgdir"/usr/lib/python3*/site-packages -type d -name tests \ -exec rm -rf {} + } sha512sums=" de5dfab1b1ebeb72cb62641e76de1c3f21c1c726e2d8ca8ac270118b2d8d0300d30cdd7c54802198a188779c9534ec46a9faf37c0f7563427929758366f0915d breezy-3.3.2.tar.gz "