pkgname=python-dulwich pkgver=0.22.7 pkgrel=1 pkgdesc="Pure-Python implementation of the Git file formats and protocols" arch=('x86_64') url="https://www.dulwich.io" license=('Apache-2.0 OR GPL-2.0-or-later') depends=(python-urllib3) makedepends=('python-build' 'python-installer' 'python-setuptools-rust' 'python-wheel') source=(https://github.com/jelmer/dulwich/archive/${pkgname#*-}-${pkgver}/${pkgname#*-}-${pkgver}.tar.gz) sha256sums=(30f600f90368f66c45ec4f46a676acf444ec8e8aec936009b1061ba19c117f80) build() { cd ${pkgname#*-}-${pkgname#*-}-${pkgver} python3 -m build --wheel --skip-dependency-check --no-isolation } package() { cd ${pkgname#*-}-${pkgname#*-}-${pkgver} python3 -m installer -d ${pkgdir} dist/*.whl }