void-packages/srcpkgs/python-hyperlink/template

33 lines
833 B
Bash

# Template file for 'python-hyperlink'
pkgname=python-hyperlink
version=19.0.0
revision=2
archs=noarch
wrksrc="hyperlink-${version}"
build_style=python-module
pycompile_module="hyperlink"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-idna"
short_desc="Pure-Python implementation of immutable URLs (Python2)"
maintainer="Alessio Sergi <al3hex@gmail.com>"
license="MIT"
homepage="https://github.com/python-hyper/hyperlink"
distfiles="${PYPI_SITE}/h/hyperlink/hyperlink-${version}.tar.gz"
checksum=4288e34705da077fada1111a24a0aa08bb1e76699c9ce49876af722441845654
post_install() {
vlicense LICENSE
}
python3-hyperlink_package() {
archs=noarch
depends="python3-idna"
pycompile_module="hyperlink"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}