void-packages/srcpkgs/python-attrs/template
2020-10-10 10:22:17 -04:00

35 lines
914 B
Bash

# Template file for 'python-attrs'
pkgname=python-attrs
version=20.2.0
revision=2
wrksrc="attrs-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
checkdepends="python-hypothesis python3-hypothesis python-pytest python3-pytest
python-zope.interface python3-zope.interface"
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=26b54ddbbb9ee1d34d5d3668dd37d6cf74990ab23c828c2888dccdceee395594
pre_check() {
# those are python3 only
rm tests/test_annotations.py tests/test_init_subclass.py
}
post_install() {
vlicense LICENSE
}
python3-attrs_package() {
depends="python3"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}