python313Packages.iterfzf: migrate to finalAttrs

This commit is contained in:
Fabian Affolter
2026-01-27 14:11:36 +01:00
committed by GitHub
parent 867fe0f1c0
commit 5847cd5b72
@@ -9,7 +9,7 @@
setuptools,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "iterfzf";
version = "1.9.0.67.0";
pyproject = true;
@@ -17,13 +17,13 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "dahlia";
repo = "iterfzf";
tag = version;
tag = finalAttrs.version;
hash = "sha256-Giw5d0X8/1PXK1j428LJjg+Gqadm93C51mLfrYc5J94=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail 'dynamic = ["version"]' 'version = "${version}"' \
--replace-fail 'dynamic = ["version"]' 'version = "${finalAttrs.version}"' \
--replace-fail 'backend-path = ["."]' '# backend-path = ["."]' \
--replace-fail 'build-backend = "build_dist"' '# build-backend = "build_dist"'
@@ -53,9 +53,9 @@ buildPythonPackage rec {
meta = {
description = "Pythonic interface to fzf, a CLI fuzzy finder";
homepage = "https://github.com/dahlia/iterfzf";
changelog = "https://github.com/dahlia/iterfzf/releases/tag/${version}";
changelog = "https://github.com/dahlia/iterfzf/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ fab ];
platforms = lib.platforms.unix;
};
}
})