void-packages/srcpkgs/python-packaging/template

32 lines
889 B
Bash

# Template file for 'python-packaging'
pkgname=python-packaging
version=19.1
revision=2
archs=noarch
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=c491ca87294da7cc01902edbe30a5bc6c4c28172b5138ab4e4aa1b9d7bfaeafe
post_install() {
vlicense LICENSE
}
python3-packaging_package() {
archs=noarch
pycompile_module="packaging"
depends="python3-attrs python3-parsing python3-six"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}