aports/testing/py3-caldav/APKBUILD
2024-11-09 17:42:08 +00:00

45 lines
1.1 KiB
Text

# Contributor: Galen Abell <galen@galenabell.com>
# Maintainer: Galen Abell <galen@galenabell.com>
pkgname=py3-caldav
pkgver=1.4.0
pkgrel=0
pkgdesc="caldav client library for Python"
url="https://github.com/python-caldav/caldav"
arch="noarch"
license="GPL-3.0-only AND Apache-2.0"
depends="
py3-icalendar
py3-lxml
py3-recurring-ical-events
py3-requests
py3-tz
py3-tzlocal
py3-vobject
"
makedepends="py3-gpep517 py3-setuptools py3-setuptools_scm py3-wheel"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/python-caldav/caldav/archive/v$pkgver.tar.gz"
builddir="$srcdir/caldav-$pkgver"
build() {
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 -m venv --clear --system-site-packages .testenv
.testenv/bin/python3 -m installer .dist/*.whl
.testenv/bin/python3 -m pytest
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
60bfa2517fc6aca25c174aae111fffe6cde97988b54088993f998b827ee770be57b719e80a402059f7aac364ba46efb75c19e2d1a61e9c5978299a865db35a72 py3-caldav-1.4.0.tar.gz
"