python-hyperlink: split python3-hyperlink
This commit is contained in:
parent
8d9f5be6ee
commit
88d5140575
@ -2,31 +2,17 @@
|
||||
pkgname=python-hyperlink
|
||||
version=21.0.0
|
||||
revision=3
|
||||
build_style=python-module
|
||||
hostmakedepends="python-setuptools python3-setuptools"
|
||||
build_style=python2-module
|
||||
hostmakedepends="python-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
|
||||
}
|
||||
make_check=no # python2
|
||||
|
||||
post_install() {
|
||||
vlicense LICENSE
|
||||
}
|
||||
|
||||
python3-hyperlink_package() {
|
||||
depends="python3-idna"
|
||||
short_desc="${short_desc/Python2/Python3}"
|
||||
pkg_install() {
|
||||
vmove usr/lib/python3*
|
||||
vlicense LICENSE
|
||||
}
|
||||
}
|
||||
|
@ -1 +0,0 @@
|
||||
python-hyperlink
|
18
srcpkgs/python3-hyperlink/template
Normal file
18
srcpkgs/python3-hyperlink/template
Normal file
@ -0,0 +1,18 @@
|
||||
# Template file for 'python3-hyperlink'
|
||||
pkgname=python3-hyperlink
|
||||
version=21.0.0
|
||||
revision=3
|
||||
build_style=python3-module
|
||||
hostmakedepends="python3-setuptools"
|
||||
depends="python3-idna"
|
||||
checkdepends="python3-pytest ${depends}"
|
||||
short_desc="Pure-Python implementation of immutable URLs (Python3)"
|
||||
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
|
||||
|
||||
post_install() {
|
||||
vlicense LICENSE
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user