void-packages/srcpkgs/python-uritemplate/template
Alessio Sergi aee81609ca python-uritemplate: update to 3.0.0
Upstream moved to https://github.com/sigmavirus24/uritemplate.
Now dual licensed Apache-2.0 and BSD.
2016-10-23 11:06:02 +02:00

38 lines
1.1 KiB
Bash

# Template file for 'python-uritemplate'
pkgname=python-uritemplate
version=3.0.0
revision=1
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}"
}