void-packages/srcpkgs/python-icalendar/template
Peter Bui d7e1434b29 python-icalendar: update to 4.0.6.
- Fix xlint errors.
- Remove obsolete do_check
2020-06-08 23:51:10 +02:00

33 lines
1.1 KiB
Bash

# Template file for 'python-icalendar'
pkgname=python-icalendar
version=4.0.6
revision=1
archs=noarch
wrksrc="icalendar-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
depends="python-setuptools python-dateutil python-pytz"
checkdepends="python3-dateutil python3-pytz python3-pytest python3-hypothesis"
short_desc="Parser/generator of iCalendar files for use with Python2"
maintainer="Oliver Kiddle <okiddle@yahoo.co.uk>"
license="BSD-2-Clause"
homepage="https://github.com/collective/icalendar"
distfiles="${PYPI_SITE}/i/icalendar/icalendar-${version}.tar.gz"
checksum=7e6fe7232622abe32d8f54d0936ffcd5a9087198a4c2f1ec1803a7dd9fdd979f
alternatives="icalendar:icalendar:/usr/bin/icalendar2"
post_install() {
vlicense LICENSE.rst LICENSE
}
python3-icalendar_package() {
archs=noarch
depends="python3-setuptools python3-dateutil python3-pytz"
alternatives="icalendar:icalendar:/usr/bin/icalendar3"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/bin/*3
vmove usr/lib/python3*
vlicense LICENSE.rst LICENSE
}
}