mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
safeeyes: update to 2.1.4.
Also fix getargspec error with python 3.11.
This commit is contained in:
parent
64b6b13d51
commit
285d6d6036
2 changed files with 17 additions and 4 deletions
13
srcpkgs/safeeyes/patches/fix-getargspec.patch
Normal file
13
srcpkgs/safeeyes/patches/fix-getargspec.patch
Normal 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
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'safeeyes'
|
# Template file for 'safeeyes'
|
||||||
pkgname=safeeyes
|
pkgname=safeeyes
|
||||||
version=2.1.3
|
version=2.1.4
|
||||||
revision=3
|
revision=1
|
||||||
build_style=python3-module
|
build_style=python3-module
|
||||||
hostmakedepends="python3-setuptools python3-pip python3-devel pkg-config"
|
hostmakedepends="python3-setuptools python3-pip python3-devel pkg-config"
|
||||||
makedepends="python3-devel cairo-devel libgirepository-devel"
|
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>"
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||||
license="GPL-3.0-or-later"
|
license="GPL-3.0-or-later"
|
||||||
homepage="https://slgobinath.github.io/SafeEyes/"
|
homepage="https://slgobinath.github.io/SafeEyes/"
|
||||||
distfiles="${PYPI_SITE}/s/${pkgname}/${pkgname}-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/s/safeeyes/safeeyes-${version}.tar.gz"
|
||||||
checksum=3db101a4ae86e824937b7ddfb56e7e464f5b2dc96a351feaccadee080f42bcac
|
checksum=4ac651c8e0de611424da956ca4acdf25b4915ffce30fe33e69a2be6173eee821
|
||||||
|
|
Loading…
Add table
Reference in a new issue