# Template file for 'python-attrs'
pkgname=python-attrs
version=21.2.0
revision=2
wrksrc="attrs-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
checkdepends="python3-pytest python3-zope.interface python3-six python3-hypothesis"
short_desc="Attributes without boilerplate (Python2)"
maintainer="Alessio Sergi <al3hex@gmail.com>"
license="MIT"
homepage="https://attrs.readthedocs.io/"
distfiles="${PYPI_SITE}/a/attrs/attrs-${version}.tar.gz"
checksum=ef6aaac3ca6cd92904cdd0d83f629a15f18053ec84e6432106f7a4d04ae4f5fb

do_check() {
	PYTHONPATH="$(cd build-${py3_ver}/lib* && pwd)" python3 -m pytest
}

post_install() {
	vlicense LICENSE
}

python3-attrs_package() {
	depends="python3"
	short_desc="${short_desc/Python2/Python3}"
	pkg_install() {
		vmove usr/lib/python3*
		vlicense LICENSE
	}
}
