void-packages/srcpkgs/python-packaging/template

32 lines
862 B
Bash

# Template file for 'python-packaging'
pkgname=python-packaging
version=19.0
revision=1
archs=noarch
wrksrc="packaging-${version}"
build_style=python-module
pycompile_module="packaging"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-parsing python-six"
short_desc="Core utilities for Python packages (Python2)"
maintainer="Alessio Sergi <al3hex@gmail.com>"
license="Apache-2.0, BSD-2-Clause"
homepage="https://github.com/pypa/packaging"
distfiles="${PYPI_SITE}/p/packaging/packaging-${version}.tar.gz"
checksum=0c98a5d0be38ed775798ece1b9727178c4469d9c3b4ada66e8e6b7849f8732af
post_install() {
vlicense LICENSE
}
python3-packaging_package() {
archs=noarch
pycompile_module="packaging"
depends="python3-parsing python3-six"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}