mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-12-06 04:40:10 +00:00
[Backport release-26.11] music-assistant: 2.10.13 -> 2.10.15 (#596876)
This commit is contained in:
@@ -18,7 +18,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "airplay-cli";
|
||||
# nixpkgs-update: no auto update
|
||||
# updated together with music-assistant
|
||||
version = "0.5.15";
|
||||
version = "0.5.19";
|
||||
|
||||
__structuredAttrs = true;
|
||||
strictDeps = true;
|
||||
@@ -30,7 +30,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
# https://github.com/music-assistant/server/blob/stable/Dockerfile#L7
|
||||
tag = "v${finalAttrs.version}";
|
||||
fetchSubmodules = true;
|
||||
hash = "sha256-ASZeFhMOEvga5vJ9Cu0QXFYkogv+sBaUZLyAl4ha/2s=";
|
||||
hash = "sha256-hksEH/VRHNColJYqpXHZ3BVHSGUU8fsYtM3zVQAi7PY=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
|
||||
@@ -43,10 +43,11 @@ diff --git a/music_assistant/providers/ytmusic/__init__.py b/music_assistant/pro
|
||||
index 81d209910..40516d7be 100644
|
||||
--- a/music_assistant/providers/ytmusic/__init__.py
|
||||
+++ b/music_assistant/providers/ytmusic/__init__.py
|
||||
@@ -59,9 +59,7 @@
|
||||
@@ -59,10 +59,7 @@
|
||||
)
|
||||
from music_assistant.controllers.cache import use_cache
|
||||
from music_assistant.helpers.util import (
|
||||
- get_package_version,
|
||||
- import_module_in_thread,
|
||||
infer_album_type,
|
||||
- install_package,
|
||||
@@ -61,26 +62,29 @@ index 81d209910..40516d7be 100644
|
||||
self._cookie = str(self.get_setup_value(CONF_COOKIE))
|
||||
self._po_token_server_url = (
|
||||
self.get_setup_value(CONF_PO_TOKEN_SERVER_URL) or DEFAULT_PO_TOKEN_SERVER_URL
|
||||
@@ -1285,19 +1282,6 @@ def _parse_thumbnails(self, thumbnails_obj: list[dict[str, Any]]) -> UniqueList[
|
||||
)
|
||||
)
|
||||
return result
|
||||
-
|
||||
@@ -1318,22 +1318,0 @@
|
||||
- async def _install_packages(self) -> None:
|
||||
- """Install frequently changing packages dynamically."""
|
||||
- # NOTE: Google breaks things quite often which requires us to update
|
||||
- # some packages very frequently. Installing them dynamically prevents
|
||||
- # us from having to update MA to ensure this provider works.
|
||||
- for package_name in PACKAGES_TO_INSTALL:
|
||||
- await install_package(package_name)
|
||||
- try:
|
||||
- await install_package(package_name, upgrade=True)
|
||||
- except RuntimeError as err:
|
||||
- # e.g. PyPI unreachable, an already installed version is still usable
|
||||
- if await get_package_version(package_name.split("[", 1)[0]) is None:
|
||||
- raise
|
||||
- self.logger.warning(
|
||||
- "Failed to upgrade %s, using the installed version: %s", package_name, err
|
||||
- )
|
||||
- # verify if the yt_dlp package is usable
|
||||
- try:
|
||||
- await import_module_in_thread("yt_dlp")
|
||||
- except ImportError:
|
||||
- raise SetupFailedError("Package yt_dlp failed to install")
|
||||
|
||||
|
||||
def _has_login_cookie(cookiejar: Iterable[Any]) -> bool:
|
||||
- await self._warn_if_ytdlp_outdated_in_process()
|
||||
-
|
||||
diff --git a/tests/providers/ytmusic/test_ytmusic.py b/tests/providers/ytmusic/test_ytmusic.py
|
||||
--- a/tests/providers/ytmusic/test_ytmusic.py
|
||||
+++ b/tests/providers/ytmusic/test_ytmusic.py
|
||||
|
||||
@@ -82,14 +82,14 @@ assert
|
||||
|
||||
pythonPackages.buildPythonApplication (finalAttrs: {
|
||||
pname = "music-assistant";
|
||||
version = "2.10.13";
|
||||
version = "2.10.15";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "music-assistant";
|
||||
repo = "server";
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-OGAn3uDek22Scq8IFDH7ylceHoIGXHRD6GtKPpdgIVE=";
|
||||
hash = "sha256-qbF/zTb3GYAMmGb9jQ6EAvT4zbgVQsnR3qvh7ngIaaA=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
@@ -312,10 +312,9 @@ pythonPackages.buildPythonApplication (finalAttrs: {
|
||||
# Our patches break this test
|
||||
"tests/helpers/test_util.py::TestLoadProviderModule"
|
||||
"tests/providers/airplay/test_helpers.py::test_get_cli_binary_uses_release_asset_name"
|
||||
"tests/providers/ytmusic/test_ytmusic.py::test_install_packages"
|
||||
# We do not have a full git repo to work with
|
||||
"tests/scripts/test_release_workflow.py"
|
||||
# save compute
|
||||
"tests/benchmarks/test_bench_helpers.py"
|
||||
# timing sensitive
|
||||
"tests/controllers/music/test_music_migrations.py::test_migrate_database_backfills_external_id_lookup"
|
||||
# AssertionError: playback loop stalled (appears to be a race)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Do not edit manually, run ./update-providers.py
|
||||
|
||||
{
|
||||
version = "2.10.13";
|
||||
version = "2.10.15";
|
||||
builtins = [
|
||||
"builtin"
|
||||
"coverartarchive"
|
||||
|
||||
35
pkgs/by-name/to/toothspin/aiosendspin-11.patch
Normal file
35
pkgs/by-name/to/toothspin/aiosendspin-11.patch
Normal file
@@ -0,0 +1,35 @@
|
||||
diff --git a/src/toothspin/source.py b/src/toothspin/source.py
|
||||
--- a/src/toothspin/source.py
|
||||
+++ b/src/toothspin/source.py
|
||||
@@ -17,4 +17,3 @@
|
||||
from aiosendspin.models.core import DeviceInfo
|
||||
from aiosendspin.models.player import SupportedAudioFormat
|
||||
-from aiosendspin.models.source import ClientHelloSourceFeatures, ClientHelloSourceSupport
|
||||
from aiosendspin.models.types import AudioCodec, GoodbyeReason, Roles, SignalState
|
||||
@@ -131,7 +130,4 @@
|
||||
)
|
||||
if self._pin_pairing
|
||||
else None,
|
||||
- source_support=ClientHelloSourceSupport(
|
||||
- features=ClientHelloSourceFeatures(line_sense=True)
|
||||
- ),
|
||||
)
|
||||
diff --git a/tests/test_source_integration.py b/tests/test_source_integration.py
|
||||
--- a/tests/test_source_integration.py
|
||||
+++ b/tests/test_source_integration.py
|
||||
@@ -11,6 +11,6 @@
|
||||
from aiosendspin.models.types import SignalState
|
||||
from aiosendspin.noise.keys import Identity, generate_psk, psk_id_for
|
||||
-from aiosendspin.noise.trust_store import InMemoryServerPairingStore, PairingPsk
|
||||
+from aiosendspin.noise.trust_store import InMemoryServerPairingStore, PairingPsk, StagedPairingPsk
|
||||
from aiosendspin.server.roles.source.events import (
|
||||
SourceSignalChangedEvent,
|
||||
SourceStreamStartedEvent,
|
||||
@@ -65,3 +65,6 @@
|
||||
pairing = PairingPsk(psk_id=psk_id_for(psk), psk=psk)
|
||||
await source._store.set_pairing_psk(pairing) # noqa: SLF001
|
||||
- await server_store.stage_pairing_psk(source.client.identity.peer_id, pairing)
|
||||
+ await server_store.stage_pairing_psk(
|
||||
+ source.client.identity.peer_id,
|
||||
+ StagedPairingPsk(psk_id=pairing.psk_id, psk=pairing.psk),
|
||||
+ )
|
||||
@@ -18,6 +18,8 @@ python3Packages.buildPythonApplication rec {
|
||||
|
||||
pythonRelaxDeps = [ "aiosendspin" ];
|
||||
|
||||
patches = [ ./aiosendspin-11.patch ];
|
||||
|
||||
build-system = with python3Packages; [ setuptools ];
|
||||
|
||||
dependencies = with python3Packages; [
|
||||
|
||||
@@ -34,14 +34,14 @@
|
||||
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "aiosendspin";
|
||||
version = "10.2.2";
|
||||
version = "11.0.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Sendspin";
|
||||
repo = "aiosendspin";
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-Y8DXmuoQHXA3dtnQVGjp0sQX3R4NYjQVU2JtpsorqRQ=";
|
||||
hash = "sha256-MOwlHKmB8i4wXHkv+AlWeT61ClfW3uKAadv3W0qMV18=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
|
||||
Reference in New Issue
Block a user