void-packages/srcpkgs/python-hyperlink/template
2021-10-09 08:00:28 -04:00

34 lines
917 B
Bash

# Template file for 'python-hyperlink'
pkgname=python-hyperlink
version=21.0.0
revision=2
wrksrc="hyperlink-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
depends="python-idna"
checkdepends="python-idna python-typing python-pytest python-mock
python3-idna python3-pytest"
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=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
}
}