Skip to content

Commit

Permalink
music-assistant: 2.3.4 -> 2.3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
mweinelt committed Feb 5, 2025
1 parent 29a3486 commit e7279b6
Showing 1 changed file with 35 additions and 4 deletions.
39 changes: 35 additions & 4 deletions pkgs/by-name/mu/music-assistant/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,34 @@ let
python = python3.override {
self = python;
packageOverrides = self: super: {
aiojellyfin = super.aiojellyfin.overridePythonAttrs (oldAttrs: rec {
version = "0.10.1";

src = fetchFromGitHub {
owner = "Jc2k";
repo = "aiojellyfin";
tag = "v${version}";
hash = "sha256-A+uvM1/7HntRMIdknfHr0TMGIjHk7BCwsZopXdVoEO8=";
};
});

music-assistant-frontend = self.callPackage ./frontend.nix { };

music-assistant-models = super.music-assistant-models.overridePythonAttrs (oldAttrs: rec {
version = "1.1.4";

src = fetchFromGitHub {
owner = "music-assistant";
repo = "models";
tag = version;
hash = "sha256-keig18o32X53q/QcoaPO0o9AT4XTEZ+dQ3L6u6BVkLU=";
};

postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "0.0.0" "${version}"
'';
});
};
};

Expand All @@ -27,14 +54,14 @@ in

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

src = fetchFromGitHub {
owner = "music-assistant";
repo = "server";
tag = version;
hash = "sha256-HV2R5zMTao8akUNZMGRKbU8BIxWmdjKFLsGMqA5cfBs=";
hash = "sha256-CSGpG1E4ou1TGz/S1mXFHyk49p7dStEwxUTB+xxfNEc=";
};

patches = [
Expand All @@ -58,6 +85,7 @@ python.pkgs.buildPythonApplication rec {

pythonRelaxDeps = [
"aiohttp"
"certifi"
"colorlog"
"cryptography"
"mashumaro"
Expand Down Expand Up @@ -111,15 +139,18 @@ python.pkgs.buildPythonApplication rec {
aiojellyfin
pytest-aiohttp
pytest-cov-stub
pytest-timeout
pytestCheckHook
syrupy
pytest-timeout
]
++ lib.flatten (lib.attrValues optional-dependencies);

pytestFlagsArray = [
# blocks in setup
"--deselect=tests/server/providers/jellyfin/test_init.py::test_initial_sync"
# 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"
];

pythonImportsCheck = [ "music_assistant" ];
Expand Down

0 comments on commit e7279b6

Please sign in to comment.