void-packages/srcpkgs/python-pyrfc3339/template
Alessio Sergi 307826d4d1 python-pyrfc3339: rebuild for Python 3.5
Switch to python3-* pkgs.
Convert python3.4-* pkg into dummy pkg.
2016-10-17 11:48:39 +02:00

38 lines
1.1 KiB
Bash

# Template file for 'python-pyrfc3339'
pkgname=python-pyrfc3339
version=1.0
revision=2
noarch=yes
build_style=python-module
pycompile_module="pyrfc3339"
wrksrc="pyRFC3339-${version}"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-pytz"
short_desc="Python2 library for generating and parsing RFC3339-compliant timestamps"
maintainer="Michael Gehring <mg@ebfe.org>"
license="MIT"
homepage="https://pythonhosted.org/pyRFC3339/"
distfiles="${PYPI_SITE}/p/pyRFC3339/pyRFC3339-${version}.tar.gz"
checksum=8dfbc6c458b8daba1c0f3620a8c78008b323a268b27b7359e92a4ae41325f535
post_install() {
vlicense LICENSE.txt LICENSE
}
python3-pyrfc3339_package() {
short_desc="${short_desc/Python2/Python3}"
depends="python3-pytz"
pycompile_module="pyrfc3339"
replaces="python3.4-pyrfc3339>=0"
noarch=yes
pkg_install() {
vlicense LICENSE.txt LICENSE
vmove /usr/lib/python3*
}
}
python3.4-pyrfc3339_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-pyrfc3339>=${version}_${revision}"
}