mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 13:57:14 +02:00
testing/sc-controller: rebuild against python 3.12 and fix tests
This commit is contained in:
parent
54a5fb8c0b
commit
2d95b56fdd
@ -2,7 +2,7 @@
|
|||||||
# Maintainer: Joshua Murphy <joshuamurphy@posteo.net>
|
# Maintainer: Joshua Murphy <joshuamurphy@posteo.net>
|
||||||
pkgname=sc-controller
|
pkgname=sc-controller
|
||||||
pkgver=0.4.8.13
|
pkgver=0.4.8.13
|
||||||
pkgrel=0
|
pkgrel=1
|
||||||
pkgdesc="User-mode driver and GTK3 based GUI for the Steam Controller"
|
pkgdesc="User-mode driver and GTK3 based GUI for the Steam Controller"
|
||||||
url="https://github.com/Ryochan7/sc-controller"
|
url="https://github.com/Ryochan7/sc-controller"
|
||||||
# s390x: py3-vdf
|
# s390x: py3-vdf
|
||||||
@ -29,7 +29,8 @@ makedepends="
|
|||||||
"
|
"
|
||||||
checkdepends="py3-pytest"
|
checkdepends="py3-pytest"
|
||||||
subpackages="$pkgname-pyc"
|
subpackages="$pkgname-pyc"
|
||||||
source="$pkgname-$pkgver.tar.gz::https://github.com/Ryochan7/sc-controller/archive/v$pkgver.tar.gz"
|
source="$pkgname-$pkgver.tar.gz::https://github.com/Ryochan7/sc-controller/archive/v$pkgver.tar.gz
|
||||||
|
fix-tests.patch"
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
gpep517 build-wheel \
|
gpep517 build-wheel \
|
||||||
@ -50,4 +51,5 @@ package() {
|
|||||||
|
|
||||||
sha512sums="
|
sha512sums="
|
||||||
f0220a409b3b312d73bbebec8128d8a5871f4a97a53d5d98034a9d2e31ce9f93c3b5d01e87c6d4bf8dea6ad96ffb53bddacfe490dc5068159275cfe6b8313e80 sc-controller-0.4.8.13.tar.gz
|
f0220a409b3b312d73bbebec8128d8a5871f4a97a53d5d98034a9d2e31ce9f93c3b5d01e87c6d4bf8dea6ad96ffb53bddacfe490dc5068159275cfe6b8313e80 sc-controller-0.4.8.13.tar.gz
|
||||||
|
3791d2f3dbf1d59427e76765196d12f39f763dc2ac57b71ad200e44dc9c5d9e01e9f1893ac2f36f5899048dc5443ade1a75ad4dd825bc965c69f719a1185cc25 fix-tests.patch
|
||||||
"
|
"
|
||||||
|
13
testing/sc-controller/fix-tests.patch
Normal file
13
testing/sc-controller/fix-tests.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/scc/parser.py b/scc/parser.py
|
||||||
|
index 78633f0e..4dcf3fa3 100644
|
||||||
|
--- a/scc/parser.py
|
||||||
|
+++ b/scc/parser.py
|
||||||
|
@@ -109,7 +109,7 @@ class ActionParser(object):
|
||||||
|
ActionParser.Token(type, string)
|
||||||
|
for type, string, *_
|
||||||
|
in generate_tokens( iter([s]).__next__ )
|
||||||
|
- if type != TokenType.ENDMARKER
|
||||||
|
+ if type != TokenType.ENDMARKER and string != ''
|
||||||
|
]
|
||||||
|
except TokenError:
|
||||||
|
self.tokens = None
|
Loading…
Reference in New Issue
Block a user