void-packages/srcpkgs/python-hyperlink/template

33 lines
833 B
Bash

# Template file for 'python-hyperlink'
pkgname=python-hyperlink
version=21.0.0
revision=3
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
depends="python-idna"
checkdepends="python3-idna python3-pytest"
short_desc="Pure-Python implementation of immutable URLs (Python2)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://github.com/python-hyper/hyperlink"
distfiles="${PYPI_SITE}/h/hyperlink/hyperlink-${version}.tar.gz"
checksum=427af957daa58bc909471c6c40f74c5450fa123dd093fc53efd2e91d2705a56b
do_check() {
python3 -m pytest build-${py3_ver}
# python 2 tests fail
}
post_install() {
vlicense LICENSE
}
python3-hyperlink_package() {
depends="python3-idna"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}