safeeyes: update to 2.1.4.

Also fix getargspec error with python 3.11.
This commit is contained in:
tibequadorian 2022-11-25 20:35:59 +01:00 committed by classabbyamp
parent 64b6b13d51
commit 285d6d6036
2 changed files with 17 additions and 4 deletions

View File

@ -0,0 +1,13 @@
diff --git a/safeeyes/utility.py b/safeeyes/utility.py
index bf2dede..7e08735 100644
--- a/safeeyes/utility.py
+++ b/safeeyes/utility.py
@@ -666,7 +666,7 @@ def has_method(module, method_name, no_of_args=0):
Check whether the given function is defined in the module or not.
"""
if hasattr(module, method_name):
- if len(inspect.getargspec(getattr(module, method_name)).args) == no_of_args:
+ if len(inspect.getfullargspec(getattr(module, method_name)).args) == no_of_args:
return True
return False

View File

@ -1,7 +1,7 @@
# Template file for 'safeeyes'
pkgname=safeeyes
version=2.1.3
revision=3
version=2.1.4
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools python3-pip python3-devel pkg-config"
makedepends="python3-devel cairo-devel libgirepository-devel"
@ -12,5 +12,5 @@ short_desc="Tool to reduce and prevent repetitive strain injury"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://slgobinath.github.io/SafeEyes/"
distfiles="${PYPI_SITE}/s/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=3db101a4ae86e824937b7ddfb56e7e464f5b2dc96a351feaccadee080f42bcac
distfiles="${PYPI_SITE}/s/safeeyes/safeeyes-${version}.tar.gz"
checksum=4ac651c8e0de611424da956ca4acdf25b4915ffce30fe33e69a2be6173eee821