A sr.ht/py3-cairocffi/APKBUILD => sr.ht/py3-cairocffi/APKBUILD +37 -0
@@ 0,0 1,37 @@
+# Contributor: Leo <thinkabit.ukim@gmail.com>
+# Contributor: Stefan Wagner <stw@bit-strickerei.de>
+# Maintainer: Newbyte <newbytee@protonmail.com>
+pkgname=py3-cairocffi
+_pkgname=cairocffi
+pkgver=1.2.0
+pkgrel=0
+pkgdesc="Python CFFI-based binding to Cairo and GDK-PixBuf"
+url="https://pythonhosted.org/cairocffi/"
+arch="noarch"
+license="BSD-3-Clause"
+depends="python3 py3-cffi cairo gdk-pixbuf"
+checkdepends="
+ py3-pytest py3-pytest-cov py3-pytest-isort py3-pytest-flake8 ttf-dejavu
+"
+makedepends="py3-setuptools"
+source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
+builddir="$srcdir"/$_pkgname-$pkgver
+options="!check" # tests broken
+
+replaces="py-cairocffi" # For backwards compatibiltiy
+provides="py-cairocffi=$pkgver-r$pkgrel" # For backwards compatibility
+
+build() {
+ python3 setup.py build
+}
+
+check() {
+ python3 setup.py test
+}
+
+package() {
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+
+sha512sums="0f5b58ae85b2cc880bfb8ede6cbfe4905737211dab5b080815eb59f7cdd9c580367b9e00e7216d68ea9cbb84bda3f21ddcbccb2e744b86d6da8b991cffb96caf cairocffi-1.2.0.tar.gz"
A sr.ht/py3-cairosvg/APKBUILD => sr.ht/py3-cairosvg/APKBUILD +34 -0
@@ 0,0 1,34 @@
+# Maintainer: Drew DeVault <sir@cmpwn.com>
+pkgname=py3-cairosvg
+_pyname=CairoSVG
+pkgver=2.5.1
+pkgrel=0
+pkgdesc="Cairo-based SVG renderer for python"
+url="https://cairosvg.org"
+arch="noarch"
+license="LGPL-3.0-or-later"
+depends="
+ python3 py3-tinycss2 py3-cssselect2 py3-defusedxml py3-cairocffi
+ py3-webencodings
+"
+checkdepends="py3-pytest py3-pillow py3-pytest-flake8 py3-pytest-isort"
+makedepends="python3-dev py3-setuptools cairo-dev"
+_pypiprefix="${_pyname%${_pyname#?}}"
+source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz"
+builddir="$srcdir"/CairoSVG-$pkgver
+replaces="py-cairosvg" # Backwards compat
+provides="py-cairosvg=$pkgver-r$pkgrel" # Backwards compat
+
+build() {
+ python3 setup.py build
+}
+
+check() {
+ pytest-3 cairosvg/test_api.py
+}
+
+package() {
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="5f6732758ed8024b58173bc920a44fcafa65a2daf301ee07e088d542f1e82d0093bd853e58da2484c392d1b625fd27c0634d07ad58cf00e674741aa413013605 CairoSVG-2.5.1.tar.gz"
A sr.ht/py3-cssselect2/APKBUILD => sr.ht/py3-cssselect2/APKBUILD +32 -0
@@ 0,0 1,32 @@
+# Contributor: Drew DeVault <sir@cmpwn.com>
+# Maintainer: Drew DeVault <sir@cmpwn.com>
+pkgname=py3-cssselect2
+_pyname=cssselect2
+pkgver=0.4.1
+pkgrel=0
+pkgdesc="CSS selectors for Python ElementTree"
+url="https://pypi.org/projects/cssselect2/"
+arch="noarch"
+license="BSD-3-Clause"
+depends="py3-tinycss2"
+checkdepends="py3-pytest py3-pytest-cov py3-pytest-isort py3-pytest-flake8"
+_pypiprefix="${_pyname%${_pyname#?}}"
+source="
+ https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz
+"
+builddir="$srcdir"/$_pyname-$pkgver
+options="!check" # upstream tests are broken
+
+build() {
+ python3 setup.py build
+}
+
+check() {
+ pytest
+}
+
+package() {
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="feafeec3dbe3157ee452d94cd391a09cfcb48ca8bd1563c117c77c9ceb01102c4989611ede39e433ec25d3ddda98a94c4589ccb290b79c729683e673763b42ac cssselect2-0.4.1.tar.gz"
A sr.ht/py3-tinycss2/APKBUILD => sr.ht/py3-tinycss2/APKBUILD +32 -0
@@ 0,0 1,32 @@
+# Contributor: Drew DeVault <sir@cmpwn.com>
+# Maintainer: Drew DeVault <sir@cmpwn.com>
+pkgname=py3-tinycss2
+_pyname=tinycss2
+pkgver=1.1.0
+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"
+_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
+
+build() {
+ python3 setup.py build
+}
+
+check() {
+ python3 setup.py pytest
+}
+
+package() {
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="218d28511802afc89a608def03084f5d460512a41d47280b5c8bfe72314c8ab3b14c98fbb0200bea6b8509c4d6f0107410d340e2d7f1830aaa92669a2699211e tinycss2-1.1.0.tar.gz"