# Contributor: Fabian Affolter # Maintainer: Fabian Affolter pkgname=py3-dulwich _pkgname=dulwich pkgver=0.21.5 pkgrel=0 pkgdesc="python implementation of the Git file formats and protocols" url="https://www.dulwich.io/" arch="all" license="GPL-2.0-or-later OR Apache-2.0" depends="py3-certifi py3-urllib3" makedepends="py3-setuptools python3-dev py3-gpep517 py3-wheel" checkdepends="py3-mock py3-gpgme" subpackages="$pkgname-pyc" source="https://github.com/jelmer/dulwich/archive/$_pkgname-$pkgver.tar.gz skip-network-tests.patch " builddir="$srcdir"/$_pkgname-dulwich-$pkgver options="!check" # todo replaces="py-dulwich" # Backwards compatibility provides="py-dulwich=$pkgver-r$pkgrel" # Backwards compatibility 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 dulwich.tests.test_suite } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl rm -r "$pkgdir"/usr/lib/python3*/site-packages/dulwich/tests/ } sha512sums=" d04a86d3b1c35f89b9c2da71a27730d8f30904be578e05fb61867133b92cf3758e90a77faba7033a37ce5d5f38f0638b83966cdab54f0fb024eaeb7d2b446050 dulwich-0.21.5.tar.gz 23743222a8306518c855b1f9bfd56e8b09624af4199541c1377a9dea5863f4489133e346b181f4018a64402d45a82ada42130ac1bdfa9163e7ff6586df7e3931 skip-network-tests.patch "