void-packages/srcpkgs/python-dnspython/template

32 lines
766 B
Bash

# Template file for 'python-dnspython'
pkgname=python-dnspython
version=1.16.0
revision=1
archs=noarch
wrksrc="dnspython-${version}"
build_style=python-module
pycompile_module="dns"
hostmakedepends="python-setuptools python3-setuptools unzip"
depends="python"
short_desc="DNS toolkit for Python2"
maintainer="Alessio Sergi <al3hex@gmail.com>"
license="ISC"
homepage="http://www.dnspython.org/"
distfiles="${PYPI_SITE}/d/dnspython/dnspython-${version}.zip"
checksum=36c5e8e38d4369a08b6780b7f27d790a292b2b08eea01607865bf0936c558e01
post_install() {
vlicense LICENSE
}
python3-dnspython_package() {
archs=noarch
pycompile_module="dns"
depends="python3"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}