aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorptrcnull <git@ptrcnull.me>2023-06-16 20:39:03 +0000
committerpsykose <alice@ayaya.dev>2023-06-16 22:40:37 +0200
commit45a80a447ae324eca0dc3256c23e7e2c42d91836 (patch)
tree50ee148d6ceb2f380d95aac262537a111dc3f3ee
parent249207121f27c2956b11e5561433eaaae819c124 (diff)
testing/sublime-music: upgrade to 0.12.0
-rw-r--r--testing/sublime-music/APKBUILD14
-rw-r--r--testing/sublime-music/fix-python3.11.patch16
2 files changed, 16 insertions, 14 deletions
diff --git a/testing/sublime-music/APKBUILD b/testing/sublime-music/APKBUILD
index d2149593d8b..cd41a343ec8 100644
--- a/testing/sublime-music/APKBUILD
+++ b/testing/sublime-music/APKBUILD
@@ -1,8 +1,8 @@
# Contributor: Alex McGrath <amk@amk.ie>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=sublime-music
-pkgver=0.11.16
-pkgrel=10
+pkgver=0.12.0
+pkgrel=0
pkgdesc="A native, GTK3 Subsonic client for the Linux Desktop"
url="https://sublimemusic.app"
arch="all !s390x !ppc64le" # py3-mpv doesnt work on these
@@ -24,14 +24,14 @@ depends="
py3-pychromecast
py3-requests
py3-semver
+ py3-thefuzz
python3
"
-makedepends="py3-gpep517 py3-installer py3-poetry-core py3-wheel"
+makedepends="py3-gpep517 py3-installer py3-flit-core py3-wheel"
subpackages="$pkgname-pyc"
-source="https://gitlab.com/sublime-music/sublime-music/-/archive/v$pkgver/sublime-music-v$pkgver.tar.gz
+source="https://github.com/sublime-music/sublime-music/archive/refs/tags/v$pkgver/sublime-music-v$pkgver.tar.gz
fix-python3.11.patch
"
-builddir="$srcdir/$pkgname-v$pkgver"
build() {
gpep517 build-wheel \
@@ -50,6 +50,6 @@ package() {
}
sha512sums="
-d2c0e825efce5bd6d89ae865290fa8c1f6d01bb355f7dca5eece3641cd0180adc42c72747b00182e02ad6cf7bf993fb8cd56a4bc757c9cd406d0067b791fd683 sublime-music-v0.11.16.tar.gz
-3696d4a587eac3d7a5480745c86bdd4ec320a05bdbfa48d71d68df0428da5fb1a8a5fd35f4deb74122a581e64622f42bebf9d1c783b64b0ba1f2f14cc35e90a7 fix-python3.11.patch
+2549b08c636d8fcf9911f19f0e6566964c79b61621bcbe9b4e31efed0cb40462c6e9b1b458d3dffb8d952003828c57f2d705b1bf37b53843a011ab24d6ef8d74 sublime-music-v0.12.0.tar.gz
+b256fbcc779e876ecbcd6f4ed91be3249f856db100dcb6b06960b6e06384c184ceccfd03492dcee420be67946d4bcf0ae67ba72976e3ad5b7016af08b6cad578 fix-python3.11.patch
"
diff --git a/testing/sublime-music/fix-python3.11.patch b/testing/sublime-music/fix-python3.11.patch
index 74f9170e713..f54acbc10c4 100644
--- a/testing/sublime-music/fix-python3.11.patch
+++ b/testing/sublime-music/fix-python3.11.patch
@@ -1,5 +1,5 @@
diff --git a/sublime_music/ui/state.py b/sublime_music/ui/state.py
-index 90c601a..ba3962f 100644
+index bf8e5cf..afa8447 100644
--- a/sublime_music/ui/state.py
+++ b/sublime_music/ui/state.py
@@ -38,6 +38,10 @@ class RepeatType(Enum):
@@ -13,7 +13,7 @@ index 90c601a..ba3962f 100644
@dataclass
class UIState:
"""Represents the UI state of the application."""
-@@ -83,15 +87,11 @@ class UIState:
+@@ -81,17 +85,13 @@ class UIState:
loading_play_queue: bool = False
# State for Album sort.
@@ -21,11 +21,13 @@ index 90c601a..ba3962f 100644
- def __init__(self):
- self.name = "Rock"
-
-- current_album_search_query: AlbumSearchQuery = AlbumSearchQuery(
-+ current_album_search_query: AlbumSearchQuery = field(default_factory=lambda: AlbumSearchQuery(
- AlbumSearchQuery.Type.RANDOM,
- genre=_DefaultGenre(),
- year_range=this_decade(),
+- current_album_search_query: AlbumSearchQuery = field(
++ current_album_search_query: AlbumSearchQuery = field(default_factory=lambda: field(
+ default_factory=lambda: AlbumSearchQuery(
+ AlbumSearchQuery.Type.RANDOM,
+ genre=UIState._DefaultGenre(),
+ year_range=this_decade(),
+ )
- )
+ ))