void-packages/srcpkgs/python-dateutil/template

37 lines
952 B
Bash

# Template file for 'python-dateutil'
pkgname=python-dateutil
version=2.5.1
revision=1
noarch=yes
build_style=python-module
python_versions="2.7 3.4"
hostmakedepends="python-setuptools python3.4-setuptools"
depends="python-six tzdata"
pycompile_module="dateutil"
short_desc="Extensions to the standard Python2 datetime module"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://github.com/dateutil/dateutil"
license="3-clause-BSD"
distfiles="${PYPI_SITE}/p/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=40d1bc468c7df50aff9e7a12c14687f9180efcff86900ee2963f9f2c13b5d7a9
pre_build() {
# don't install zoneinfo tarball
sed -i '/package_data=/d' setup.py
}
post_install() {
vlicense LICENSE
}
python3.4-dateutil_package() {
noarch=yes
depends="python3.4-six tzdata"
pycompile_version="3.4"
pycompile_module="dateutil"
short_desc="${short_desc/Python2/Python3.4}"
pkg_install() {
vmove usr/lib/python3.4
vlicense LICENSE
}
}