void-packages/srcpkgs/python-uritemplate/template

30 lines
794 B
Bash

# Template file for 'python-uritemplate'
pkgname=python-uritemplate
version=3.0.1
revision=1
archs=noarch
wrksrc="${pkgname#*-}-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
short_desc="Python2 implementation of RFC6570 URI Template"
maintainer="Peter Bui <pbui@github.bx612.space>"
license="Apache-2.0, BSD-3-Clause"
homepage="https://github.com/sigmavirus24/uritemplate"
distfiles="${PYPI_SITE}/u/uritemplate/uritemplate-${version}.tar.gz"
checksum=5af8ad10cec94f215e3f48112de2022e1d5a37ed427fbd88652fa908f2ab7cae
post_install() {
vlicense LICENSE
}
python3-uritemplate_package() {
archs=noarch
depends="python3"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}