void-packages/srcpkgs/python-uritemplate/template

39 lines
1.1 KiB
Bash

# Template file for 'python-uritemplate'
pkgname=python-uritemplate
version=3.0.0
revision=2
noarch=yes
wrksrc="${pkgname#*-}-${version}"
build_style=python-module
pycompile_module="uritemplate"
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
short_desc="Python2 implementation of RFC6570 URI Template"
maintainer="Peter Bui <pnutzh4x0r@gmail.com>"
license="Apache-2.0, 3-clause-BSD"
homepage="https://github.com/sigmavirus24/uritemplate"
distfiles="${PYPI_SITE}/u/uritemplate/uritemplate-${version}.tar.gz"
checksum=c02643cebe23fc8adb5e6becffe201185bf06c40bda5c0b4028a93f1527d011d
post_install() {
vlicense LICENSE
}
python3-uritemplate_package() {
noarch=yes
depends="python3"
pycompile_module="uritemplate"
replaces="python3.4-uritemplate>=0"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}
python3.4-uritemplate_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-uritemplate>=${version}_${revision}"
}