void-packages/srcpkgs/python-attrs/template

37 lines
935 B
Bash

# Template file for 'python-attrs'
pkgname=python-attrs
version=16.3.0
revision=1
noarch=yes
wrksrc="attrs-${version}"
build_style=python-module
pycompile_module="attrs"
hostmakedepends="python-setuptools python3-setuptools"
short_desc="Python2 attributes without boilerplate"
maintainer="Michael Gehring <mg@ebfe.org>"
license="MIT"
homepage="https://attrs.readthedocs.org/"
distfiles="${PYPI_SITE}/a/attrs/attrs-${version}.tar.gz"
checksum=80203177723e36f3bbe15aa8553da6e80d47bfe53647220ccaa9ad7a5e473ccc
post_install() {
vlicense LICENSE
}
python3-attrs_package() {
noarch=yes
pycompile_module="attrs"
replaces="python3.4-attrs>=0"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vlicense LICENSE
vmove usr/lib/python3*
}
}
python3.4-attrs_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-attrs>=${version}_${revision}"
}