diff --git a/pkgs/development/python-modules/python-socks/default.nix b/pkgs/development/python-modules/python-socks/default.nix index effeb9c0a994..1551e5748a7f 100644 --- a/pkgs/development/python-modules/python-socks/default.nix +++ b/pkgs/development/python-modules/python-socks/default.nix @@ -16,7 +16,7 @@ yarl, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "python-socks"; version = "2.8.1"; pyproject = true; @@ -26,7 +26,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "romis2012"; repo = "python-socks"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-Eu4xeBZbZvAGfFArMiUlUQQa4yywKWj+azv+OHiKJfU="; }; @@ -58,10 +58,10 @@ buildPythonPackage rec { pythonImportsCheck = [ "python_socks" ]; meta = { - changelog = "https://github.com/romis2012/python-socks/releases/tag/${src.tag}"; + changelog = "https://github.com/romis2012/python-socks/releases/tag/${finalAttrs.src.tag}"; description = "Core proxy client (SOCKS4, SOCKS5, HTTP) functionality for Python"; homepage = "https://github.com/romis2012/python-socks"; license = lib.licenses.asl20; maintainers = [ ]; }; -} +})