Skip to content

Commit

Permalink
safeeyes: update to 2.1.4.
Browse files Browse the repository at this point in the history
Also fix getargspec error with python 3.11.
  • Loading branch information
tibequadorian authored and classabbyamp committed Nov 27, 2022
1 parent 64b6b13 commit 285d6d6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
13 changes: 13 additions & 0 deletions srcpkgs/safeeyes/patches/fix-getargspec.patch
Original file line number Diff line number Diff line change
@@ -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

8 changes: 4 additions & 4 deletions srcpkgs/safeeyes/template
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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

0 comments on commit 285d6d6

Please sign in to comment.