Subject: [PATCH] community/py3-tinycss2: upgrade to 1.1.1

From: Drew DeVault <[email-masked]>
Date: Tue, 23 Nov 2021 08:26:49 +0100

---
 community/py3-tinycss2/APKBUILD | 22 ++++++++++++++--------
 1 file changed, 14 insertions(+), 8 deletions(-)

diff --git a/community/py3-tinycss2/APKBUILD b/community/py3-tinycss2/APKBUILD
index 0aa76a8e4d..1b6580d53a 100644
--- a/community/py3-tinycss2/APKBUILD
+++ b/community/py3-tinycss2/APKBUILD
@@ -2,31 +2,37 @@
 # Maintainer: Drew DeVault <[email-masked]>
 pkgname=py3-tinycss2
 _pyname=tinycss2
-pkgver=1.1.0
-pkgrel=1
+pkgver=1.1.1
+pkgrel=0
 pkgdesc="Low-level CSS parser for Python"
 url="https://pypi.python.org/pypi/tinycss2"
 arch="noarch"
 license="BSD-3-Clause"
 depends="py3-webencodings"
 checkdepends="py3-pytest py3-pytest-flake8 py3-pytest-isort py3-pytest-cov"
-makedepends="python3-dev py3-setuptools"
+makedepends="python3-dev py3-setuptools pyproject2setuppy"
 _pypiprefix="${_pyname%${_pyname#?}}"
 source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz"
 builddir="$srcdir"/$_pyname-$pkgver
 replaces="py-tinycss py2-tinycss py3-tinycss"
-options="!check" # upstream tests are broken
+
+prepare() {
+	# Run your damn test suite BEFORE you ship your package
+	sed -i pyproject.toml -e 's/--isort //'
+}
 
 build() {
-	python3 setup.py build
+	python3 -m pyproject2setuppy.main build
 }
 
 check() {
-	python3 setup.py pytest
+	pytest
 }
 
 package() {
-	python3 setup.py install --prefix=/usr --root="$pkgdir"
+	python3 -m pyproject2setuppy.main install --prefix=/usr --root="$pkgdir"
 }
 
-sha512sums="218d28511802afc89a608def03084f5d460512a41d47280b5c8bfe72314c8ab3b14c98fbb0200bea6b8509c4d6f0107410d340e2d7f1830aaa92669a2699211e  tinycss2-1.1.0.tar.gz"
+sha512sums="
+297ac51cf4eb9a063e88d677b8cf2511ff6c459c7a385ee8ba6bb4b9d9b0d8482f5caa1cc6511d3edefbe8e8ee284d72fedc154a5372880cd7d9a9a26aab1a62  tinycss2-1.1.1.tar.gz
+"
-- 
2.34.0