From a45d211bec37b06c53a6db92b96b0ebd07bbd87e Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Mon, 5 Jan 2026 11:16:04 +0000 Subject: [PATCH] python3Package.jaxtyping: switch to finalAttrs --- pkgs/development/python-modules/jaxtyping/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/jaxtyping/default.nix b/pkgs/development/python-modules/jaxtyping/default.nix index 68bce01a2803..bb00d1d1a293 100644 --- a/pkgs/development/python-modules/jaxtyping/default.nix +++ b/pkgs/development/python-modules/jaxtyping/default.nix @@ -23,7 +23,7 @@ jaxtyping, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "jaxtyping"; version = "0.3.5"; pyproject = true; @@ -31,7 +31,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "google"; repo = "jaxtyping"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-0Vt6UD1xQkwve6yDVi5XQCoJ/IsJWHCkGesj66myQq4="; }; @@ -68,8 +68,8 @@ buildPythonPackage rec { meta = { description = "Type annotations and runtime checking for JAX arrays and PyTrees"; homepage = "https://github.com/google/jaxtyping"; - changelog = "https://github.com/patrick-kidger/jaxtyping/releases/tag/v${version}"; + changelog = "https://github.com/patrick-kidger/jaxtyping/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ GaetanLepage ]; }; -} +})