31 lines
808 B
Bash
31 lines
808 B
Bash
# Template file for 'python-dateutil'
|
|
pkgname=python-dateutil
|
|
version=2.8.2
|
|
revision=1
|
|
build_style=python-module
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python-six tzdata"
|
|
short_desc="Extensions to the standard Python2 datetime module"
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
license="Apache-2.0, BSD-3-Clause"
|
|
homepage="https://github.com/dateutil/dateutil"
|
|
distfiles="${PYPI_SITE}/p/${pkgname}/${pkgname}-${version}.tar.gz"
|
|
checksum=0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86
|
|
|
|
post_patch() {
|
|
vsed -i setup.py -e "s/%PKGVERSION%/'${version}'/"
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3-dateutil_package() {
|
|
depends="python3-six tzdata"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE
|
|
}
|
|
}
|