From 33ea8aedd14c697090c24207331ef561ad5d781d Mon Sep 17 00:00:00 2001 From: Timo Gottszky Date: Wed, 10 Jun 2026 15:52:48 +0200 Subject: [PATCH] python3Packages.nptyping: use finalAttrs --- pkgs/development/python-modules/nptyping/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/nptyping/default.nix b/pkgs/development/python-modules/nptyping/default.nix index b82f21fb51d9..ad055fa719d0 100644 --- a/pkgs/development/python-modules/nptyping/default.nix +++ b/pkgs/development/python-modules/nptyping/default.nix @@ -10,7 +10,7 @@ feedparser, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "nptyping"; version = "2.5.0"; format = "setuptools"; @@ -18,7 +18,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "ramonhagenaars"; repo = "nptyping"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-hz4YrcvARCAA7TXapmneIwle/F4pzcIYLPSmiFHC0VQ="; }; @@ -63,11 +63,11 @@ buildPythonPackage rec { meta = { description = "Type hints for numpy"; homepage = "https://github.com/ramonhagenaars/nptyping"; - changelog = "https://github.com/ramonhagenaars/nptyping/blob/v${version}/HISTORY.md"; + changelog = "https://github.com/ramonhagenaars/nptyping/blob/v${finalAttrs.version}/HISTORY.md"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ bcdarwin pandapip1 ]; }; -} +})