python3Packages.extruct: use finalAttrs

This commit is contained in:
Bruno BELANYI
2026-01-05 12:36:41 +00:00
parent ec0ddb1b4f
commit 3a3733abc8
@@ -16,7 +16,7 @@
w3lib,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "extruct";
version = "0.18.0";
pyproject = true;
@@ -26,7 +26,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "scrapinghub";
repo = "extruct";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-hUSlIlWxrsxGLCE8/DAGSqxx9+7TEkynmXrVnXGjDQ8=";
};
@@ -60,8 +60,8 @@ buildPythonPackage rec {
description = "Extract embedded metadata from HTML markup";
mainProgram = "extruct";
homepage = "https://github.com/scrapinghub/extruct";
changelog = "https://github.com/scrapinghub/extruct/blob/v${version}/HISTORY.rst";
changelog = "https://github.com/scrapinghub/extruct/blob/v${finalAttrs.version}/HISTORY.rst";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ ambroisie ];
};
}
})