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