void-packages/srcpkgs/python-attrs/template

32 lines
756 B
Bash

# Template file for 'python-attrs'
pkgname=python-attrs
version=18.1.0
revision=1
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=e0d0eb91441a3b53dab4d9b743eafc1ac44476296a2053b6ca3af0b139faf87b
post_install() {
vlicense LICENSE
}
python3-attrs_package() {
noarch=yes
depends="python3"
pycompile_module="attr"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}