A sr.ht/py3-soupsieve/APKBUILD => sr.ht/py3-soupsieve/APKBUILD +29 -0
@@ 0,0 1,29 @@
+# Contributor: Drew DeVault <sir@cmpwn.com>
+# Maintainer: Drew DeVault <sir@cmpwn.com>
+pkgname=py3-soupsieve
+_pyname=soupsieve
+pkgver=1.9.2
+pkgrel=0
+pkgdesc="A modern CSS selector implementation for Beautiful Soup."
+url="https://github.com/facelessuser/soupsieve"
+arch="noarch"
+license="MIT"
+checkdepends="py3-beautifulsoup4"
+makedepends="py3-setuptools py3-pytest py3-pytest-cov py3-lxml py3-html5lib"
+_pypiprefix="${_pyname%${_pyname#?}}"
+source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz"
+builddir="$srcdir"/$_pyname-$pkgver
+
+build() {
+ python3 setup.py build
+}
+
+check() {
+ pytest-3
+}
+
+package() {
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="7d741d7119ecfb886c3c08853aa268c81b8eccae304518367e8ff479b7925d95131f484c4f57af7c5d0dc87cbdb511a48581a3ca9bd206711d5f4700e0896906 soupsieve-1.9.2.tar.gz"