Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions pkgs/by-name/mu/music-assistant/frontend.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,15 @@

buildPythonPackage rec {
pname = "music-assistant-frontend";
version = "2.14.9";
version = "2.15.1";
pyproject = true;

src = fetchPypi {
inherit pname version;
hash = "sha256-UEGRZBegoAnls5xAyVgjisD0B8nu8kXp1XHI4A114lw=";
pname = "music_assistant_frontend";
inherit version;
hash = "sha256-l6SKBMqP2FrjVUmywDXf0I4Te0qbzufUVR7frWAzrks=";
};

postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "~=" ">="
'';

build-system = [ setuptools ];

doCheck = false;
Expand Down
15 changes: 9 additions & 6 deletions pkgs/by-name/mu/music-assistant/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@ assert

python.pkgs.buildPythonApplication rec {
pname = "music-assistant";
version = "2.5.2";
version = "2.5.5";
pyproject = true;

src = fetchFromGitHub {
owner = "music-assistant";
repo = "server";
tag = version;
hash = "sha256-RkbU2MqQ7XSv7f6gvgS0AZ8jy63fUAomC41dEk8qyOI=";
hash = "sha256-v9xFUjjk7KHsUtuZjQWLtc1m3f6VOUPlQtSBtUR6Pcg=";
};

patches = [
Expand Down Expand Up @@ -99,6 +99,7 @@ python.pkgs.buildPythonApplication rec {
with python.pkgs;
[
aiohttp
chardet
mashumaro
orjson
]
Expand Down Expand Up @@ -149,11 +150,13 @@ python.pkgs.buildPythonApplication rec {
++ (providerPackages.jellyfin python.pkgs)
++ (providerPackages.opensubsonic python.pkgs);

pytestFlagsArray = [
disabledTestPaths = [
# blocks in poll()
"--deselect=tests/providers/jellyfin/test_init.py::test_initial_sync"
"--deselect=tests/core/test_server_base.py::test_start_and_stop_server"
"--deselect=tests/core/test_server_base.py::test_events"
"tests/providers/jellyfin/test_init.py::test_initial_sync"
"tests/core/test_server_base.py::test_start_and_stop_server"
"tests/core/test_server_base.py::test_events"
# not compatible with the required py-subsonic version
"tests/providers/opensubsonic/test_parsers.py"
];

pythonImportsCheck = [ "music_assistant" ];
Expand Down
2 changes: 1 addition & 1 deletion pkgs/by-name/mu/music-assistant/providers.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Do not edit manually, run ./update-providers.py

{
version = "2.5.2";
version = "2.5.5";
providers = {
airplay = ps: [
];
Expand Down
2 changes: 1 addition & 1 deletion pkgs/by-name/mu/music-assistant/update-providers.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env nix-shell
#!nix-shell -I nixpkgs=./. -i python3 -p "music-assistant.python.withPackages (ps: music-assistant.dependencies ++ (with ps; [ jinja2 packaging ]))" -p pyright ruff isort
#!nix-shell -I nixpkgs=./. -i python3 -p "music-assistant.python.withPackages (ps: music-assistant.dependencies ++ (with ps; [ jinja2 packaging ]))" -p nixfmt pyright ruff isort
Copy link
Copy Markdown
Contributor

@wolfgangwalther wolfgangwalther Aug 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nixfmt was removed on purpose from update scripts' shebangs in b68cc63. This is expected to be available via nixpkgs' nix-shell environment / treefmt configuration instead.

Removed again in #433588.

import asyncio
import json
import os.path
Expand Down
10 changes: 7 additions & 3 deletions pkgs/development/python-modules/py-opensonic/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,28 @@
buildPythonPackage,
fetchFromGitHub,
setuptools,
mashumaro,
requests,
}:

buildPythonPackage rec {
pname = "py-opensonic";
version = "5.3.1";
version = "7.0.2";
pyproject = true;

src = fetchFromGitHub {
owner = "khers";
repo = "py-opensonic";
tag = "v${version}";
hash = "sha256-bgD+wtq9AXCobUCpDfGVe6Ze1cTbbM5auXohQw5gcnk=";
hash = "sha256-t+MftumVBcIOO8WvWZcLXLp5Iq87Vpvqc4cxH+yTBAo=";
};

build-system = [ setuptools ];

dependencies = [ requests ];
dependencies = [
mashumaro
requests
];

doCheck = false; # no tests

Expand Down
17 changes: 11 additions & 6 deletions pkgs/development/python-modules/unidecode/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,20 @@
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
setuptools,
nix-update-script,
}:

buildPythonPackage rec {
pname = "unidecode";
version = "1.3.8";
version = "1.4.0";
pyproject = true;

disabled = pythonOlder "3.5";

src = fetchFromGitHub {
owner = "avian2";
repo = "unidecode";
rev = "refs/tags/${pname}-${version}";
hash = "sha256-OoJSY+dNNISyVwKuRboMH7Je8nYFKxus2c4v3VsmyRE=";
tag = "unidecode-${version}";
hash = "sha256-CPogyDw8B1Xd3Bt6W9OaImVt+hFQsir16mnSYk8hFWQ=";
};

nativeBuildInputs = [ setuptools ];
Expand All @@ -27,6 +25,13 @@ buildPythonPackage rec {

pythonImportsCheck = [ "unidecode" ];

passthru.updateScript = nix-update-script {
extraArgs = [
"--version-regex"
"unidecode-(.*)"
];
};

meta = with lib; {
description = "ASCII transliterations of Unicode text";
mainProgram = "unidecode";
Expand Down
Loading