From 25ba4d8d075103cba9360c4fa85d069a82223bfa Mon Sep 17 00:00:00 2001
From: ptrcnull <git@ptrcnull.me>
Date: Sat, 12 Feb 2022 18:48:18 +0100
Subject: [PATCH 1/5] community/py3-zipp: increase timeout in performance tests

allows building for ppc64le
---
 community/py3-zipp/APKBUILD                    |  5 +++--
 community/py3-zipp/increase-test-timeout.patch | 13 +++++++++++++
 2 files changed, 16 insertions(+), 2 deletions(-)
 create mode 100644 community/py3-zipp/increase-test-timeout.patch

diff --git a/community/py3-zipp/APKBUILD b/community/py3-zipp/APKBUILD
index 498744bb4399..0abc1fc1dcf5 100644
--- a/community/py3-zipp/APKBUILD
+++ b/community/py3-zipp/APKBUILD
@@ -5,14 +5,14 @@ pkgver=3.5.0
 pkgrel=2
 pkgdesc="Pathlib-compatible object wrapper for zip files"
 url="https://github.com/jaraco/zipp"
-arch="noarch !ppc64le" # Failing tests
-arch="$arch !mips64" # black->py3-pyest-black->py3-inflect->py3-jaraco.itertools
+arch="noarch !mips64" # black->py3-pyest-black->py3-inflect->py3-jaraco.itertools
 license="MIT"
 depends="py3-jaraco.itertools py3-func-timeout"
 makedepends="py3-setuptools"
 checkdepends="py3-pytest"
 source="https://files.pythonhosted.org/packages/source/z/zipp/zipp-$pkgver.tar.gz
 	add-version-placeholder.patch
+	increase-test-timeout.patch
 	"
 builddir="$srcdir/zipp-$pkgver"
 
@@ -38,4 +38,5 @@ package() {
 sha512sums="
 676d7e9a7fde386b57a213975121aba015461453f0809a97d39d030b06918a4c54ba1cad21877ddf007560941ae285883098d81d5e6f17eb4636379345b4513d  zipp-3.5.0.tar.gz
 9101d4ff4e65e3922f875588efb5d17fe36642d8a38d22f269e87ff5da22c088cbfb2c07c0293b739a90d0484d709c73a1bfca955c687d88535a688a0a4b845a  add-version-placeholder.patch
+ade3c289effcc7e913220ce8b32a0dac2d8f068f3fdd06e93103da6259dc5bd2c04ebabbc5ed0a356e9c7951fc0e7bca86abc4ed804750fe1498048e653ff8be  increase-test-timeout.patch
 "
diff --git a/community/py3-zipp/increase-test-timeout.patch b/community/py3-zipp/increase-test-timeout.patch
new file mode 100644
index 000000000000..d087b1cd2df2
--- /dev/null
+++ b/community/py3-zipp/increase-test-timeout.patch
@@ -0,0 +1,13 @@
+From: Patrycja Rosa <alpine@ptrcnull.me>
+Date: Sat, 12 Feb 2022 18:36:03 +0100
+Subject: increase performance test timeout
+
+ppc64le seems to have issues with finishing in 3 seconds,
+increasing this timeout allows for successful builds on that architecture
+
+diff --git a/test_zipp.py b/test_zipp.py
+--- a/test_zipp.py
++++ b/test_zipp.py
+@@ -297,1 +297,1 @@
+-    @func_timeout.func_set_timeout(3)
++    @func_timeout.func_set_timeout(10)
-- 
GitLab


From 30c8dd6d03769325ffc7c03698b424f98f1ae1ca Mon Sep 17 00:00:00 2001
From: ptrcnull <git@ptrcnull.me>
Date: Sat, 12 Feb 2022 18:56:13 +0100
Subject: [PATCH 2/5] community/py3-zipp: remove mips64 arch constraint

---
 community/py3-zipp/APKBUILD | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/community/py3-zipp/APKBUILD b/community/py3-zipp/APKBUILD
index 0abc1fc1dcf5..1c9975a5c49b 100644
--- a/community/py3-zipp/APKBUILD
+++ b/community/py3-zipp/APKBUILD
@@ -5,7 +5,7 @@ pkgver=3.5.0
 pkgrel=2
 pkgdesc="Pathlib-compatible object wrapper for zip files"
 url="https://github.com/jaraco/zipp"
-arch="noarch !mips64" # black->py3-pyest-black->py3-inflect->py3-jaraco.itertools
+arch="noarch"
 license="MIT"
 depends="py3-jaraco.itertools py3-func-timeout"
 makedepends="py3-setuptools"
-- 
GitLab


From 5934ee8953e722cc87f397f626a16c9415ba8384 Mon Sep 17 00:00:00 2001
From: ptrcnull <git@ptrcnull.me>
Date: Sat, 12 Feb 2022 19:00:45 +0100
Subject: [PATCH 3/5] community/py3-importlib-metadata: enable on ppc64le

---
 community/py3-importlib-metadata/APKBUILD | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/community/py3-importlib-metadata/APKBUILD b/community/py3-importlib-metadata/APKBUILD
index 1cbf88af419b..81b395e50007 100644
--- a/community/py3-importlib-metadata/APKBUILD
+++ b/community/py3-importlib-metadata/APKBUILD
@@ -5,8 +5,7 @@ pkgver=4.8.1
 pkgrel=1
 pkgdesc="Read metadata from Python packages"
 url="https://github.com/python/importlib_metadata"
-# ppc64le and mips64 blocked by py3-zipp
-arch="noarch !ppc64le !mips64"
+arch="noarch"
 license="Apache-2.0"
 depends="py3-zipp"
 makedepends="
-- 
GitLab


From 6c6747a6ee8f9208fff5ccb2fce08fe5bf119e5b Mon Sep 17 00:00:00 2001
From: ptrcnull <git@ptrcnull.me>
Date: Sat, 12 Feb 2022 19:01:13 +0100
Subject: [PATCH 4/5] community/py3-keyring: enable on ppc64le

---
 community/py3-keyring/APKBUILD | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/community/py3-keyring/APKBUILD b/community/py3-keyring/APKBUILD
index 4f1c31fb4bb1..65dc0144c070 100644
--- a/community/py3-keyring/APKBUILD
+++ b/community/py3-keyring/APKBUILD
@@ -4,8 +4,7 @@ pkgver=23.2.1
 pkgrel=1
 pkgdesc="Access the system keyring service from Python"
 url="https://github.com/jaraco/keyring"
-# ppc64le and mips64 blocked by py3-importlib-metadata
-arch="noarch !ppc64le !mips64"
+arch="noarch"
 license="GPL-3.0-only"
 depends="
 	py3-importlib-metadata
-- 
GitLab


From 5bda048c5d7b270dd2f1c982b0a3037c301fa0ab Mon Sep 17 00:00:00 2001
From: ptrcnull <git@ptrcnull.me>
Date: Sat, 12 Feb 2022 19:01:19 +0100
Subject: [PATCH 5/5] community/poetry: enable on ppc64le

---
 community/poetry/APKBUILD | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/community/poetry/APKBUILD b/community/poetry/APKBUILD
index cf43f7ba4bb1..df1e8fd87180 100644
--- a/community/poetry/APKBUILD
+++ b/community/poetry/APKBUILD
@@ -7,7 +7,7 @@ pkgrel=0
 pkgdesc="Python3 dependency management and packaging system"
 url="https://python-poetry.org"
 license="MIT"
-arch="noarch !ppc64le !mips64" # limited by py3-keyring
+arch="noarch"
 options="!check" # TODO: add tests
 depends="
 	python3
-- 
GitLab