void-packages/srcpkgs/python-attrs/template

35 lines
914 B
Bash

# Template file for 'python-attrs'
pkgname=python-attrs
version=20.3.0
revision=1
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=832aa3cde19744e49938b91fea06d69ecb9e649c93ba974535d08ad92164f700
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
}
}