void-packages/srcpkgs/python-dateutil/template

42 lines
1.1 KiB
Bash

# Template file for 'python-dateutil'
pkgname=python-dateutil
version=2.6.0
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 <al3hex@gmail.com>"
homepage="https://github.com/dateutil/dateutil"
license="3-clause-BSD"
distfiles="${PYPI_SITE}/p/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=62a2f8df3d66f878373fd0072eacf4ee52194ba302e00082828e0d263b0418d2
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"
replaces="python3.4-dateutil>=0"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}
python3.4-dateutil_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-dateutil>=${version}_${revision}"
}