From 3b82f3eea03a670b739efbb703f6416020050327 Mon Sep 17 00:00:00 2001 From: Joel Beckmeyer Date: Thu, 10 Nov 2022 15:27:01 -0500 Subject: [PATCH] python3-attrs: update to 22.1.0. split from python-attrs as python2 is no longer supported --- srcpkgs/python-attrs/template | 18 ++---------------- srcpkgs/python3-attrs | 1 - srcpkgs/python3-attrs/template | 19 +++++++++++++++++++ 3 files changed, 21 insertions(+), 17 deletions(-) delete mode 120000 srcpkgs/python3-attrs create mode 100644 srcpkgs/python3-attrs/template diff --git a/srcpkgs/python-attrs/template b/srcpkgs/python-attrs/template index ce8321736d4..8af143a18f6 100644 --- a/srcpkgs/python-attrs/template +++ b/srcpkgs/python-attrs/template @@ -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 " 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 - } -} diff --git a/srcpkgs/python3-attrs b/srcpkgs/python3-attrs deleted file mode 120000 index f6d04198f69..00000000000 --- a/srcpkgs/python3-attrs +++ /dev/null @@ -1 +0,0 @@ -python-attrs \ No newline at end of file diff --git a/srcpkgs/python3-attrs/template b/srcpkgs/python3-attrs/template new file mode 100644 index 00000000000..64aaacfbecd --- /dev/null +++ b/srcpkgs/python3-attrs/template @@ -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 " +license="MIT" +homepage="https://attrs.readthedocs.io/" +distfiles="${PYPI_SITE}/a/attrs/attrs-${version}.tar.gz" +checksum=29adc2665447e5191d0e7c568fde78b21f9672d344281d0c6e1ab085429b22b6 + +post_install() { + vlicense LICENSE +}