void-packages/srcpkgs/python-packaging/template

30 lines
862 B
Bash

# Template file for 'python-packaging'
pkgname=python-packaging
version=20.4
revision=1
wrksrc="packaging-${version}"
build_style=python-module
pycompile_module="packaging"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-attrs 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=4357f74f47b9c12db93624a82154e9b120fa8293699949152b22065d556079f8
post_install() {
vlicense LICENSE
}
python3-packaging_package() {
pycompile_module="packaging"
depends="python3-attrs python3-parsing python3-six"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}