# Maintainer: Mark Wagie # Contributor: A Frederick Christensen # Contributor: Carsten Feuls pkgname=python-caldav _name=${pkgname#python-} pkgver=1.3.5 pkgrel=1 pkgdesc="A CalDAV (RFC4791) client library for Python" arch=('any') url="https://github.com/python-caldav/caldav" license=('Apache' 'GPL3') depends=('python-icalendar' 'python-lxml' 'python-recurring-ical-events' 'python-requests' 'python-six' 'python-tzlocal' 'python-vobject') makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel') checkdepends=('python-pytest-cov' 'radicale' 'xandikos') source=("${_name}-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz") sha256sums=('6f58b3dfa6b7f5b3a82b689897c615e870d93b05543bd8dc59d8748d84b6a684') build() { cd "${_name}-$pkgver" python -m build --wheel --no-isolation } check() { cd "${_name}-$pkgver" pytest } package() { cd "${_name}-$pkgver" python -m installer --destdir="$pkgdir" dist/*.whl }