From f7017a24672c0d9538dce25430d4264faa12d405 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 5 Aug 2026 18:44:50 +0200 Subject: [PATCH] python3Packages.music-assistant-client: 1.3.6 -> 1.4.3 https://github.com/music-assistant/client/releases/tag/v1.4.3 --- .../music-assistant-client/default.nix | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/music-assistant-client/default.nix b/pkgs/development/python-modules/music-assistant-client/default.nix index 09542f5c3e59..175b0b5292f0 100644 --- a/pkgs/development/python-modules/music-assistant-client/default.nix +++ b/pkgs/development/python-modules/music-assistant-client/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchFromGitHub, + pyprojectVersionPatchHook, # build-system setuptools, @@ -13,22 +14,19 @@ }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "music-assistant-client"; - version = "1.3.6"; + version = "1.4.3"; pyproject = true; src = fetchFromGitHub { owner = "music-assistant"; repo = "client"; - tag = version; - hash = "sha256-uK3suOFhRJT6ji5ksdH3Y4iO9ysdbyZWVNTThJvGiGc="; + tag = "v${finalAttrs.version}"; + hash = "sha256-M14H28TABXwJrr3OjcWyvNufEItXeJLfEL78anGLj7o="; }; - postPatch = '' - substituteInPlace pyproject.toml \ - --replace-fail "0.0.0" "${version}" - ''; + nativeBuildInputs = [ pyprojectVersionPatchHook ]; build-system = [ setuptools ]; @@ -47,8 +45,8 @@ buildPythonPackage rec { meta = { description = "Python client to interact with the Music Assistant Server API"; homepage = "https://github.com/music-assistant/client"; - changelog = "https://github.com/music-assistant/client/releases/tag/${src.tag}"; + changelog = "https://github.com/music-assistant/client/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.asl20; maintainers = [ ]; }; -} +})