void-packages/srcpkgs/python-attrs/template

39 lines
971 B
Bash

# Template file for 'python-attrs'
pkgname=python-attrs
version=17.2.0
revision=2
noarch=yes
wrksrc="attrs-${version}"
build_style=python-module
pycompile_module="attr"
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
short_desc="Attributes without boilerplate (Python2)"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="MIT"
homepage="https://attrs.readthedocs.io/"
distfiles="${PYPI_SITE}/a/attrs/attrs-${version}.tar.gz"
checksum=5d4d1b99f94d69338f485984127e4473b3ab9e20f43821b0e546cc3b2302fd11
post_install() {
vlicense LICENSE
}
python3-attrs_package() {
noarch=yes
depends="python3"
pycompile_module="attr"
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}"
}