void-packages/srcpkgs/python-dateutil/template
Alessio Sergi 217e7d31f2 srcpkgs: remove python3.4-* transitional dummy packages
After more than a year the switch to python3 packages, it is time to say
them goodbye. So long, and thanks for all the fish.
2017-12-20 11:29:51 +01:00

34 lines
892 B
Bash

# Template file for 'python-dateutil'
pkgname=python-dateutil
version=2.6.1
revision=2
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=891c38b2a02f5bb1be3e4793866c8df49c7d19baabf9c1bad62547e0b4866aca
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
}
}