python3Packages.netutils: migrate to finalAttrs

This commit is contained in:
Fabian Affolter
2026-04-14 02:02:01 +02:00
committed by GitHub
parent cc2ece6aee
commit eb99ea10a9
@@ -11,7 +11,7 @@
toml,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "netutils";
version = "1.17.2";
pyproject = true;
@@ -19,7 +19,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "networktocode";
repo = "netutils";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-DHftRRqbuUa74ATfh8MHxINwNkpz9lo/drwOmeo0itE=";
};
@@ -59,8 +59,8 @@ buildPythonPackage rec {
meta = {
description = "Library that is a collection of objects for common network automation tasks";
homepage = "https://github.com/networktocode/netutils";
changelog = "https://github.com/networktocode/netutils/releases/tag/${src.tag}";
changelog = "https://github.com/networktocode/netutils/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
}
})