diff --git a/pkgs/development/python-modules/pytaglib/default.nix b/pkgs/development/python-modules/pytaglib/default.nix index cc684505ac49..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.1.0"; - format = "setuptools"; + version = "3.2.0"; + pyproject = true; src = fetchFromGitHub { owner = "supermihi"; repo = "pytaglib"; - tag = "v${version}"; - hash = "sha256-A+RH9mWwtvhBDqTfvOK1RbsPP+0srF9h4mIknAHbG50="; + 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"; }; -} +})