testing/py3-qt.py: upgrade to 1.3.10

includes a fix for python 3.12
This commit is contained in:
ptrcnull 2024-04-07 14:27:45 +02:00
parent b03f07a7d2
commit ce418cbd3a
No known key found for this signature in database
GPG Key ID: 411F7B30801DD9CA
2 changed files with 27 additions and 4 deletions

View File

@ -1,8 +1,8 @@
# Contributor: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
pkgname=py3-qt.py
pkgver=1.3.8
pkgrel=2
pkgver=1.3.10
pkgrel=0
pkgdesc="Minimal Python 2 & 3 shim around all Qt bindings"
url="https://github.com/mottosso/Qt.py"
arch="noarch !armhf" # no py3-qt5 on armhf
@ -10,7 +10,9 @@ license="MIT"
depends="python3 py3-qt5 py3-setuptools"
checkdepends="py3-nose py3-six"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/mottosso/Qt.py/archive/$pkgver.tar.gz"
source="$pkgname-$pkgver.tar.gz::https://github.com/mottosso/Qt.py/archive/$pkgver.tar.gz
importlib.patch
"
builddir="$srcdir/Qt.py-$pkgver"
build() {
@ -26,5 +28,6 @@ package() {
}
sha512sums="
3d584e1574bbb9458847e44ab4c901cc134d1669c549cfff3c8ac391f3dca87f48166e874305febb5092dea0d8baa58bd66fae71c100aa9b29b089502d341f71 py3-qt.py-1.3.8.tar.gz
a8cf1de389881b453dafa53d6bfd9e9bbe263effef03c9eefbc87b33798463d5117996006545687f91329b976a2e94b0b27a1bf8969728685c1a432c7c31a7b6 py3-qt.py-1.3.10.tar.gz
0ac7faa921bde9ff487c0f7c1443c2f1390cbd888055cfe174f5a8ab3b1429f695b264b371b8d5f6d0ac07136a5e064bcc534edbd8cbf8bfe65f70dd141a02c4 importlib.patch
"

View File

@ -0,0 +1,20 @@
diff --git a/tests.py b/tests.py
index 833fcc6..3c1c937 100644
--- a/tests.py
+++ b/tests.py
@@ -5,3 +5,3 @@ import os
import sys
-import imp
+import importlib
import shutil
@@ -310,6 +310,6 @@ def test_environment():
# PySide is not available for Python > 3.4
- imp.find_module("PySide")
- imp.find_module("PySide2")
- imp.find_module("PyQt4")
- imp.find_module("PyQt5")
+ importlib.util.find_spec("PySide")
+ importlib.util.find_spec("PySide2")
+ importlib.util.find_spec("PyQt4")
+ importlib.util.find_spec("PyQt5")