void-packages/srcpkgs/python-pyrfc3339/template

32 lines
859 B
Bash

# Template file for 'python-pyrfc3339'
pkgname=python-pyrfc3339
version=1.1
revision=2
archs=noarch
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 RFC 3339 timestamps"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://github.com/kurtraschke/pyRFC3339"
distfiles="${PYPI_SITE}/p/pyRFC3339/pyRFC3339-${version}.tar.gz"
checksum=81b8cbe1519cdb79bed04910dd6fa4e181faf8c88dff1e1b987b5f7ab23a5b1a
post_install() {
vlicense LICENSE.txt LICENSE
}
python3-pyrfc3339_package() {
short_desc="${short_desc/Python2/Python3}"
depends="python3-pytz"
pycompile_module="pyrfc3339"
archs=noarch
pkg_install() {
vlicense LICENSE.txt LICENSE
vmove usr/lib/python3*
}
}