2014-07-02 16:40:39 +00:00
|
|
|
# Template file for 'python-dateutil'
|
|
|
|
pkgname=python-dateutil
|
2015-04-01 09:01:00 +00:00
|
|
|
version=2.4.2
|
2014-07-02 16:40:39 +00:00
|
|
|
revision=1
|
|
|
|
noarch=yes
|
2015-03-07 16:55:55 +00:00
|
|
|
build_style=python-module
|
2014-07-02 16:40:39 +00:00
|
|
|
python_versions="2.7 3.4"
|
|
|
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
2015-03-07 16:55:55 +00:00
|
|
|
depends="python-six tzdata"
|
2014-07-02 16:40:39 +00:00
|
|
|
pycompile_module="dateutil"
|
|
|
|
short_desc="Extensions to the standard Python2 datetime module"
|
|
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
2015-03-07 16:55:55 +00:00
|
|
|
homepage="https://github.com/dateutil/dateutil"
|
2014-07-02 16:40:39 +00:00
|
|
|
license="BSD"
|
2015-03-07 16:55:55 +00:00
|
|
|
distfiles="${PYPI_SITE}/p/${pkgname}/${pkgname}-${version}.tar.gz"
|
2015-04-01 09:01:00 +00:00
|
|
|
checksum=3e95445c1db500a344079a47b171c45ef18f57d188dffdb0e4165c71bea8eb3d
|
2014-07-02 16:40:39 +00:00
|
|
|
|
|
|
|
pre_build() {
|
2015-03-07 16:55:55 +00:00
|
|
|
# don't install zoneinfo tarball
|
|
|
|
sed -i '/package_data=/d' setup.py
|
2014-07-02 16:40:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
python3.4-dateutil_package() {
|
|
|
|
noarch=yes
|
2015-03-07 16:55:55 +00:00
|
|
|
depends="python3.4-six tzdata"
|
2014-07-02 16:40:39 +00:00
|
|
|
pycompile_version="3.4"
|
|
|
|
pycompile_module="dateutil"
|
|
|
|
short_desc="${short_desc/Python2/Python3.4}"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/python3.4
|
|
|
|
}
|
|
|
|
}
|