python313Packages.pytaglib: modernize

This commit is contained in:
Fabian Affolter
2026-02-06 02:36:49 +01:00
parent fda4cc3472
commit ccf1967be1
@@ -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";
};
}
})