safeeyes: update to 3.3.1.
This commit is contained in:
committed by
Andrew J. Hesford
parent
659b984ca5
commit
883355a58d
@@ -1,28 +0,0 @@
|
||||
diff --git a/safeeyes/utility.py b/safeeyes/utility.py
|
||||
index 76803e5..ad35134 100644
|
||||
--- a/safeeyes/utility.py
|
||||
+++ b/safeeyes/utility.py
|
||||
@@ -21,9 +21,9 @@ This module contains utility functions for Safe Eyes and its plugins.
|
||||
"""
|
||||
|
||||
import errno
|
||||
-import imp
|
||||
import inspect
|
||||
import importlib
|
||||
+import importlib.util
|
||||
import json
|
||||
import locale
|
||||
import logging
|
||||
@@ -354,11 +354,7 @@ def module_exist(module):
|
||||
"""
|
||||
Check wther the given Python module exists or not.
|
||||
"""
|
||||
- try:
|
||||
- imp.find_module(module)
|
||||
- return True
|
||||
- except ImportError:
|
||||
- return False
|
||||
+ return importlib.util.find_spec(module) is not None
|
||||
|
||||
|
||||
def merge_configs(new_config, old_config):
|
||||
@@ -1,16 +1,16 @@
|
||||
# Template file for 'safeeyes'
|
||||
pkgname=safeeyes
|
||||
version=2.1.6
|
||||
revision=3
|
||||
version=3.3.1
|
||||
revision=1
|
||||
build_style=python3-module
|
||||
hostmakedepends="python3-setuptools python3-devel pkg-config"
|
||||
hostmakedepends="python3-setuptools python3-devel pkg-config gettext"
|
||||
makedepends="python3-devel cairo-devel libgirepository-devel"
|
||||
depends="python3-psutil libayatana-appindicator python3-gobject python3-Babel
|
||||
python3-dbus xprop alsa-utils python3-xlib"
|
||||
python3-dbus xprop alsa-utils python3-xlib python3-packaging"
|
||||
checkdepends="$depends python3-pip"
|
||||
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/"
|
||||
homepage="https://slgobinath.github.io/safeeyes/"
|
||||
distfiles="${PYPI_SITE}/s/safeeyes/safeeyes-${version}.tar.gz"
|
||||
checksum=b6fb014dfebecca07307968bf8b51c12f1388e65479e7a18d0be31a0a309d2f3
|
||||
checksum=14a41722be0775d3111c47d240a509809c7d3a4f21caa5e1810d17b71d5a668b
|
||||
|
||||
Reference in New Issue
Block a user