Loading pkgs/by-name/mu/music-assistant/fix-webserver-tests-in-sandbox.patch +4 −4 Original line number Diff line number Diff line diff --git a/music_assistant/helpers/util.py b/music_assistant/helpers/util.py index bc14912b..d207b855 100644 index 377c7221..aaf6460d 100644 --- a/music_assistant/helpers/util.py +++ b/music_assistant/helpers/util.py @@ -274,7 +274,7 @@ async def get_ip_addresses(include_ipv6: bool = False) -> tuple[str, ...]: if ip.is_IPv6 and not include_ipv6: @@ -305,7 +305,7 @@ async def get_ip_addresses(include_ipv6: bool = False) -> tuple[str, ...]: continue ip_str = str(ip.ip) # ifaddr returns IPv6 addresses as (address, flowinfo, scope_id) tuples ip_str = ip.ip[0] if isinstance(ip.ip, tuple) else ip.ip - if ip_str.startswith(("127", "169.254")): + if ip_str.startswith(("127", "169.254")) and "PYTEST_VERSION" not in os.environ: # filter out IPv4 loopback/APIPA address Loading pkgs/by-name/mu/music-assistant/frontend.nix +2 −2 Original line number Diff line number Diff line Loading @@ -7,13 +7,13 @@ buildPythonPackage rec { pname = "music-assistant-frontend"; version = "2.17.76"; version = "2.17.73"; pyproject = true; src = fetchPypi { pname = "music_assistant_frontend"; inherit version; hash = "sha256-wQ+6xD1BDajMIpz7VVH0j/AIgCcIVjv1Y/k/kMYv96U="; hash = "sha256-vmZa98pT5Cg22fa73/KTrMUqP4Axc1y4x710HCxBzIY="; }; build-system = [ setuptools ]; Loading pkgs/by-name/mu/music-assistant/package.nix +3 −2 Original line number Diff line number Diff line Loading @@ -47,14 +47,14 @@ assert python.pkgs.buildPythonApplication rec { pname = "music-assistant"; version = "2.7.6"; version = "2.7.8"; pyproject = true; src = fetchFromGitHub { owner = "music-assistant"; repo = "server"; tag = version; hash = "sha256-tAzCEU8jFWENOy0WaAchuhQGjmQl8BTW9TuGZPJByPw="; hash = "sha256-o17H8cmMC8szh/hfgdq0JWCPh45TkrhuXOikr+DcBw8="; }; patches = [ Loading Loading @@ -186,6 +186,7 @@ python.pkgs.buildPythonApplication rec { "tests/core/test_server_base.py::test_events" # provider is missing dependencies "tests/providers/nicovideo" "tests/providers/apple_music" ]; pythonImportsCheck = [ "music_assistant" ]; Loading pkgs/by-name/mu/music-assistant/providers.nix +1 −1 Original line number Diff line number Diff line # Do not edit manually, run ./update-providers.py { version = "2.7.6"; version = "2.7.8"; providers = { airplay = ps: with ps; [ Loading Loading
pkgs/by-name/mu/music-assistant/fix-webserver-tests-in-sandbox.patch +4 −4 Original line number Diff line number Diff line diff --git a/music_assistant/helpers/util.py b/music_assistant/helpers/util.py index bc14912b..d207b855 100644 index 377c7221..aaf6460d 100644 --- a/music_assistant/helpers/util.py +++ b/music_assistant/helpers/util.py @@ -274,7 +274,7 @@ async def get_ip_addresses(include_ipv6: bool = False) -> tuple[str, ...]: if ip.is_IPv6 and not include_ipv6: @@ -305,7 +305,7 @@ async def get_ip_addresses(include_ipv6: bool = False) -> tuple[str, ...]: continue ip_str = str(ip.ip) # ifaddr returns IPv6 addresses as (address, flowinfo, scope_id) tuples ip_str = ip.ip[0] if isinstance(ip.ip, tuple) else ip.ip - if ip_str.startswith(("127", "169.254")): + if ip_str.startswith(("127", "169.254")) and "PYTEST_VERSION" not in os.environ: # filter out IPv4 loopback/APIPA address Loading
pkgs/by-name/mu/music-assistant/frontend.nix +2 −2 Original line number Diff line number Diff line Loading @@ -7,13 +7,13 @@ buildPythonPackage rec { pname = "music-assistant-frontend"; version = "2.17.76"; version = "2.17.73"; pyproject = true; src = fetchPypi { pname = "music_assistant_frontend"; inherit version; hash = "sha256-wQ+6xD1BDajMIpz7VVH0j/AIgCcIVjv1Y/k/kMYv96U="; hash = "sha256-vmZa98pT5Cg22fa73/KTrMUqP4Axc1y4x710HCxBzIY="; }; build-system = [ setuptools ]; Loading
pkgs/by-name/mu/music-assistant/package.nix +3 −2 Original line number Diff line number Diff line Loading @@ -47,14 +47,14 @@ assert python.pkgs.buildPythonApplication rec { pname = "music-assistant"; version = "2.7.6"; version = "2.7.8"; pyproject = true; src = fetchFromGitHub { owner = "music-assistant"; repo = "server"; tag = version; hash = "sha256-tAzCEU8jFWENOy0WaAchuhQGjmQl8BTW9TuGZPJByPw="; hash = "sha256-o17H8cmMC8szh/hfgdq0JWCPh45TkrhuXOikr+DcBw8="; }; patches = [ Loading Loading @@ -186,6 +186,7 @@ python.pkgs.buildPythonApplication rec { "tests/core/test_server_base.py::test_events" # provider is missing dependencies "tests/providers/nicovideo" "tests/providers/apple_music" ]; pythonImportsCheck = [ "music_assistant" ]; Loading
pkgs/by-name/mu/music-assistant/providers.nix +1 −1 Original line number Diff line number Diff line # Do not edit manually, run ./update-providers.py { version = "2.7.6"; version = "2.7.8"; providers = { airplay = ps: with ps; [ Loading