diff --git a/srcpkgs/orca/patches/python3.10.patch b/srcpkgs/orca/patches/python3.10.patch new file mode 100644 index 00000000000..53565ec4fa6 --- /dev/null +++ b/srcpkgs/orca/patches/python3.10.patch @@ -0,0 +1,31 @@ +From 41b7a370addd507d6583c135c8ac99c7c06076e5 Mon Sep 17 00:00:00 2001 +From: Kalev Lember +Date: Fri, 10 Sep 2021 10:12:23 +0200 +Subject: [PATCH] Fix compatibility with Python 3.10 + +Python 3.10 removed aliases to Collections Abstract Base Classes that +were deprecated in Python 3.3. + +Fix this by just using collections.abc directly without using the alias. + +https://docs.python.org/3.10/whatsnew/changelog.html#python-3-10-0-alpha-5 +--- + src/orca/generator.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/orca/generator.py b/src/orca/generator.py +index e98970992..e9a9d89de 100644 +--- a/src/orca/generator.py ++++ b/src/orca/generator.py +@@ -78,7 +78,7 @@ class Generator: + self._activeProgressBars = {} + self._methodsDict = {} + for method in \ +- [z for z in [getattr(self, y).__get__(self, self.__class__) for y in [x for x in dir(self) if x.startswith(METHOD_PREFIX)]] if isinstance(z, collections.Callable)]: ++ [z for z in [getattr(self, y).__get__(self, self.__class__) for y in [x for x in dir(self) if x.startswith(METHOD_PREFIX)]] if isinstance(z, collections.abc.Callable)]: + name = method.__name__[len(METHOD_PREFIX):] + name = name[0].lower() + name[1:] + self._methodsDict[name] = method +-- +GitLab + diff --git a/srcpkgs/orca/template b/srcpkgs/orca/template index b2df76b8446..9ad08628e51 100644 --- a/srcpkgs/orca/template +++ b/srcpkgs/orca/template @@ -1,7 +1,7 @@ # Template file for 'orca' pkgname=orca version=40.0 -revision=2 +revision=3 build_style=gnu-configure hostmakedepends="intltool itstool pkg-config" makedepends="at-spi2-atk-devel liblouis-devel python3-gobject-devel"