python3Packages.pyroute2: migrate to finalAttrs

This commit is contained in:
Fabian Affolter
2026-04-16 17:56:14 +02:00
parent 9f036a7bed
commit 59a5985718
@@ -5,7 +5,7 @@
setuptools,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "pyroute2";
version = "0.9.6";
pyproject = true;
@@ -13,7 +13,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "svinota";
repo = "pyroute2";
tag = version;
tag = finalAttrs.version;
hash = "sha256-ZseZQFiR+btDsR+ozcd8DBp0vsNTb6tIzaArQfOk7CI=";
};
@@ -43,7 +43,7 @@ buildPythonPackage rec {
meta = {
description = "Python Netlink library";
homepage = "https://github.com/svinota/pyroute2";
changelog = "https://github.com/svinota/pyroute2/blob/${src.tag}/CHANGELOG.rst";
changelog = "https://github.com/svinota/pyroute2/blob/${finalAttrs.src.tag}/CHANGELOG.rst";
license = with lib.licenses; [
asl20 # or
gpl2Plus
@@ -54,4 +54,4 @@ buildPythonPackage rec {
];
platforms = lib.platforms.unix;
};
}
})