# Template file for 'python-dateutil' pkgname=python-dateutil version=2.8.0 revision=1 archs=noarch build_style=python-module pycompile_module="dateutil" hostmakedepends="python-setuptools python3-setuptools" depends="python-six tzdata" short_desc="Extensions to the standard Python2 datetime module" maintainer="Alessio Sergi " license="Apache-2.0, BSD-3-Clause" homepage="https://github.com/dateutil/dateutil" distfiles="${PYPI_SITE}/p/${pkgname}/${pkgname}-${version}.tar.gz" checksum=c89805f6f4d64db21ed966fda138f8a5ed7a4fdbc1a8ee329ce1b74e3c74da9e pre_build() { # don't install zoneinfo tarball sed -i '/package_data=/d' setup.py } post_install() { vlicense LICENSE } python3-dateutil_package() { archs=noarch depends="python3-six tzdata" pycompile_module="dateutil" short_desc="${short_desc/Python2/Python3}" pkg_install() { vmove usr/lib/python3* vlicense LICENSE } }