python3Packages.extruct: use finalAttrs
This commit is contained in:
@@ -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 ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user