python3-attrs: update to 22.1.0.

split from python-attrs as python2 is no longer supported
This commit is contained in:
Joel Beckmeyer 2022-11-10 15:27:01 -05:00 committed by Michal Vasilek
parent 1598890e23
commit 3b82f3eea0
3 changed files with 21 additions and 17 deletions

View File

@ -2,10 +2,9 @@
pkgname=python-attrs
version=21.2.0
revision=3
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
build_style=python2-module
hostmakedepends="python-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"
@ -13,19 +12,6 @@ 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
}
}

View File

@ -1 +0,0 @@
python-attrs

View File

@ -0,0 +1,19 @@
# Template file for 'python3-attrs'
pkgname=python3-attrs
version=22.1.0
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3"
checkdepends="python3-pytest python3-zope.interface python3-six
python3-hypothesis"
short_desc="Attributes without boilerplate (Python3)"
maintainer="Alessio Sergi <al3hex@gmail.com>"
license="MIT"
homepage="https://attrs.readthedocs.io/"
distfiles="${PYPI_SITE}/a/attrs/attrs-${version}.tar.gz"
checksum=29adc2665447e5191d0e7c568fde78b21f9672d344281d0c6e1ab085429b22b6
post_install() {
vlicense LICENSE
}