diff --git a/pkgs/development/python-modules/pyroute2/default.nix b/pkgs/development/python-modules/pyroute2/default.nix index bf94708fc64b..9ef49807e44d 100644 --- a/pkgs/development/python-modules/pyroute2/default.nix +++ b/pkgs/development/python-modules/pyroute2/default.nix @@ -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; }; -} +})