apkbuilds @ 5ae86d77daf952ef6fb5c48128d23d83b60d5119

feat: Add gallery-dl

Adds gallery-dl from testing branch so I don't have to include it in the
build process.
diff --git a/gallery-dl/APKBUILD b/gallery-dl/APKBUILD
new file mode 100644
index 0000000000000000000000000000000000000000..e503ca3c497918cd5dd8d40f53be9ec0156652dd
--- /dev/null
+++ b/gallery-dl/APKBUILD
@@ -0,0 +1,42 @@
+# Contributor: Hoang Nguyen <folliekazetani@protonmail.com>
+# Maintainer: Hoang Nguyen <folliekazetani@protonmail.com>
+pkgname=gallery-dl
+pkgver=1.23.2
+pkgrel=0
+pkgdesc="CLI tool to download image galleries"
+url="https://github.com/mikf/gallery-dl"
+arch="noarch"
+license="GPL-2.0-or-later"
+option="!check" #check requires docker
+depends="
+	py3-requests
+	python3
+	"
+makedepends="py3-setuptools"
+checkdepends="py3-pytest yt-dlp"
+subpackages="
+	$pkgname-doc
+	$pkgname-bash-completion
+	$pkgname-zsh-completion
+	$pkgname-fish-completion
+	"
+source="$pkgname-$pkgver.tar.gz::https://github.com/mikf/gallery-dl/archive/v$pkgver.tar.gz"
+
+build() {
+	python3 setup.py build
+
+	make man completion
+}
+
+package() {
+	python3 setup.py install --prefix=/usr --root="$pkgdir"
+
+	# Install fish completion to the correct directory
+	rm -r "$pkgdir"/usr/share/fish/vendor_completions.d
+	install -Dm644 data/completion/gallery-dl.fish \
+		-t "$pkgdir"/usr/share/fish/completions
+}
+
+sha512sums="
+75defb234faf0467e5a957594a58a02cfc75180d63a4b2c24d84061d326fbb46f08ad3230b72adf525f1ba82621963564c556047d4aa06c16cc5124ecd8c075f  gallery-dl-1.23.2.tar.gz
+"
diff --git a/jsonpickle/APKBUILD b/jsonpickle/APKBUILD
new file mode 100644
index 0000000000000000000000000000000000000000..6cfc40e75a9e407c562875105ed42f3540519970
--- /dev/null
+++ b/jsonpickle/APKBUILD
@@ -0,0 +1,43 @@
+# Maintainer:
+pkgname=py3-jsonpickle
+pkgver=2.2.0
+pkgrel=0
+pkgdesc="Serializing any arbitrary object graph into JSON"
+url="https://pypi.python.org/pypi/jsonpickle/"
+arch="noarch"
+license="BSD-3-Clause"
+depends="python3 py3-numpy py3-pandas"
+makedepends="py3-setuptools py3-setuptools_scm"
+checkdepends="py3-pytest"
+source="https://files.pythonhosted.org/packages/source/j/jsonpickle/jsonpickle-$pkgver.tar.gz
+	tests.patch
+	"
+builddir="$srcdir/jsonpickle-$pkgver"
+
+replaces="py-jsonpickle" # Backwards compatibility
+provides="py-jsonpickle=$pkgver-r$pkgrel" # Backwards compatibility
+
+prepare() {
+	default_prepare
+
+	sed -e '/setuptools_scm/d' \
+		-e "/^\[metadata\]/a verison = $pkgver" \
+		-i setup.cfg
+}
+
+build() {
+	python3 setup.py build
+}
+
+check() {
+	PYTHONPATH=$PWD/build/lib pytest-3 -c /dev/null
+}
+
+package() {
+	python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="
+b6cb35316e32f38875cbfa3784a3930f669d4ea730ead6117242070590647987383e9f933c193b8c246c40dba87ad56600a65db89c45c18a790b3c1f9232b245  jsonpickle-2.2.0.tar.gz
+8df533695556bc7b329211dfbb5ad667fbd8f9b569721a054f9dead9402ac365666f50ff4343feda536e679a58f1244708ab10fa2f6f8b33b2469dfdc57c576c  tests.patch
+"
diff --git a/jsonpickle/tests.patch b/jsonpickle/tests.patch
new file mode 100644
index 0000000000000000000000000000000000000000..99d78af9620a5b9ebb8169a4d9f7823e1b400b52
--- /dev/null
+++ b/jsonpickle/tests.patch
@@ -0,0 +1,15 @@
+diff --git a/jsonpickle/pickler.py b/jsonpickle/pickler.py
+index ce64592..62ba575 100644
+--- a/jsonpickle/pickler.py
++++ b/jsonpickle/pickler.py
+@@ -462,6 +462,9 @@ class Pickler(object):
+             if has_getinitargs:
+                 data[tags.INITARGS] = self._flatten(obj.__getinitargs__())
+ 
++        if type(obj).__name__ == 'TextIOWrapper':
++            return None
++
+         if has_getstate:
+             try:
+                 state = obj.__getstate__()
+