diff options
Diffstat (limited to 'community/py3-cattrs/APKBUILD')
-rw-r--r-- | community/py3-cattrs/APKBUILD | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/community/py3-cattrs/APKBUILD b/community/py3-cattrs/APKBUILD index 80e9f237a3d..8dde41b14a2 100644 --- a/community/py3-cattrs/APKBUILD +++ b/community/py3-cattrs/APKBUILD @@ -1,20 +1,27 @@ # Contributor: Rasmus Thomsen <oss@cogitri.dev> -# Maintainer: Rasmus Thomsen <oss@cogitri.dev> +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=py3-cattrs -pkgver=1.8.0 +pkgver=23.2.3 pkgrel=1 pkgdesc="Complex custom class converters for attrs" -url="https://github.com/Tinche/cattrs" +url="https://github.com/python-attrs/cattrs" arch="noarch" license="MIT" depends="python3 py3-attrs" -makedepends="py3-setuptools" +makedepends=" + py3-gpep517 + py3-hatch-vcs + py3-hatchling + " options="!check" # loads of missing deps +subpackages="$pkgname-pyc" source="https://files.pythonhosted.org/packages/source/c/cattrs/cattrs-$pkgver.tar.gz" builddir="$srcdir/cattrs-$pkgver" build() { - python3 setup.py build + gpep517 build-wheel \ + --wheel-dir .dist \ + --output-fd 3 3>&1 >&2 } check() { @@ -22,9 +29,10 @@ check() { } package() { - python3 setup.py install --prefix=/usr --root="$pkgdir" + python3 -m installer -d "$pkgdir" \ + .dist/*.whl } sha512sums=" -5b46d7f3e103654fcc1088ed5cafd0fa84f1385c2f68f8c7ebfba4aa80cd9f34801a1f02a3bdca016aef01a8384a9dfefe053d0e4aee04f188a39edda9f6831e cattrs-1.8.0.tar.gz +1defa5b8f43eb0c585db09bbca54358ab9595e0842ace37b8980d8f3d48f2690675b0901d1cb9636fcd8cd81859b5c65df2034867a9b8b4ed4776ba9ed7945a3 cattrs-23.2.3.tar.gz " |