void-packages/srcpkgs/python-attrs/template

32 lines
779 B
Bash
Raw Normal View History

2016-04-10 18:11:18 +00:00
# Template file for 'python-attrs'
pkgname=python-attrs
2016-09-18 20:32:52 +00:00
version=16.2.0
2016-05-26 07:38:18 +00:00
revision=1
2016-04-10 18:11:18 +00:00
noarch==yes
wrksrc="attrs-${version}"
build_style=python-module
python_versions="2.7 3.4"
pycompile_module="attrs"
hostmakedepends="python-setuptools python3.4-setuptools"
2016-04-10 18:20:00 +00:00
short_desc="Python2 attributes without boilerplate"
2016-04-10 18:11:18 +00:00
maintainer="Michael Gehring <mg@ebfe.org>"
license="MIT"
homepage="https://attrs.readthedocs.org/"
distfiles="${PYPI_SITE}/a/attrs/attrs-${version}.tar.gz"
2016-09-18 20:32:52 +00:00
checksum=136f2ec0f94ec77ff2990830feee965d608cab1e8922370e3abdded383d52001
2016-04-10 18:11:18 +00:00
2016-04-10 18:20:00 +00:00
post_install() {
vlicense LICENSE
}
2016-04-10 18:11:18 +00:00
python3.4-attrs_package() {
noarch=yes
pycompile_version="3.4"
pycompile_module="attrs"
short_desc="${short_desc/Python2/Python3.4}"
pkg_install() {
2016-04-10 18:20:00 +00:00
vlicense LICENSE
2016-04-10 18:11:18 +00:00
vmove usr/lib/python3.4
}
}