mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
python-hyperlink: split python3-hyperlink
This commit is contained in:
parent
8d9f5be6ee
commit
88d5140575
3 changed files with 21 additions and 18 deletions
|
@ -2,31 +2,17 @@
|
||||||
pkgname=python-hyperlink
|
pkgname=python-hyperlink
|
||||||
version=21.0.0
|
version=21.0.0
|
||||||
revision=3
|
revision=3
|
||||||
build_style=python-module
|
build_style=python2-module
|
||||||
hostmakedepends="python-setuptools python3-setuptools"
|
hostmakedepends="python-setuptools"
|
||||||
depends="python-idna"
|
depends="python-idna"
|
||||||
checkdepends="python3-idna python3-pytest"
|
|
||||||
short_desc="Pure-Python implementation of immutable URLs (Python2)"
|
short_desc="Pure-Python implementation of immutable URLs (Python2)"
|
||||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
homepage="https://github.com/python-hyper/hyperlink"
|
homepage="https://github.com/python-hyper/hyperlink"
|
||||||
distfiles="${PYPI_SITE}/h/hyperlink/hyperlink-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/h/hyperlink/hyperlink-${version}.tar.gz"
|
||||||
checksum=427af957daa58bc909471c6c40f74c5450fa123dd093fc53efd2e91d2705a56b
|
checksum=427af957daa58bc909471c6c40f74c5450fa123dd093fc53efd2e91d2705a56b
|
||||||
|
make_check=no # python2
|
||||||
do_check() {
|
|
||||||
python3 -m pytest build-${py3_ver}
|
|
||||||
# python 2 tests fail
|
|
||||||
}
|
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vlicense LICENSE
|
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…
Add table
Reference in a new issue