From ccf1967be1174b3831f550e6b9448096ec49d5c6 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 6 Feb 2026 01:33:20 +0100 Subject: [PATCH] python313Packages.pytaglib: modernize --- .../python-modules/pytaglib/default.nix | 20 +++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/pytaglib/default.nix b/pkgs/development/python-modules/pytaglib/default.nix index 24417ab9ef8c..d4d198b2d1d0 100644 --- a/pkgs/development/python-modules/pytaglib/default.nix +++ b/pkgs/development/python-modules/pytaglib/default.nix @@ -5,20 +5,28 @@ taglib, cython, pytestCheckHook, + setuptools, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "pytaglib"; version = "3.2.0"; - format = "setuptools"; + pyproject = true; src = fetchFromGitHub { owner = "supermihi"; repo = "pytaglib"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-529U71Lvs6QufcG3yBeywyGc2ukYYfFHIf6TFjt+k3U="; }; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace-fail "cython==3.2.4" "cython" + ''; + + build-system = [ setuptools ]; + buildInputs = [ cython taglib @@ -30,10 +38,10 @@ buildPythonPackage rec { meta = { description = "Python bindings for the Taglib audio metadata library"; - mainProgram = "pyprinttags"; homepage = "https://github.com/supermihi/pytaglib"; - changelog = "https://github.com/supermihi/pytaglib/blob/${src.tag}/CHANGELOG.md"; + changelog = "https://github.com/supermihi/pytaglib/blob/${finalAttrs.src.tag}/CHANGELOG.md"; license = lib.licenses.gpl3Plus; maintainers = with lib.maintainers; [ mrkkrp ]; + mainProgram = "pyprinttags"; }; -} +})