void-packages/srcpkgs/python-idna/template
2018-12-28 00:24:45 +01:00

31 lines
789 B
Bash

# Template file for 'python-idna'
pkgname=python-idna
version=2.8
revision=1
noarch=yes
wrksrc="idna-${version}"
build_style=python-module
pycompile_module="idna"
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
short_desc="Internationalized Domain Names in Applications (IDNA) for Python2"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://github.com/kjd/idna"
license="BSD-3-Clause"
distfiles="${PYPI_SITE}/i/idna/idna-${version}.tar.gz"
checksum=c357b3f628cf53ae2c4c05627ecc484553142ca23264e593d327bcde5e9c3407
post_install() {
vlicense LICENSE.rst
}
python3-idna_package() {
noarch=yes
depends="python3"
pycompile_module="idna"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE.rst
}
}