From 6935b590e84bf160e6106b917e542f9add07d034 Mon Sep 17 00:00:00 2001 From: Anton Tayanovskyy Date: Sat, 25 Jul 2026 10:44:15 -0400 Subject: [PATCH] sage: rename python package from sagelib to sagemath This change fixes `nix build .#sage`. The regression is due to a new check, pythonMetadataCheckHook, introduced in #532778; the check enforces that pname matches the metadata name of the underlying Python project being built, typically in pyproject.toml; in this case the underlying name is "sagemath". --- pkgs/by-name/sa/sage/sagelib.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/sa/sage/sagelib.nix b/pkgs/by-name/sa/sage/sagelib.nix index 46d4972f94a1..5777a379e421 100644 --- a/pkgs/by-name/sa/sage/sagelib.nix +++ b/pkgs/by-name/sa/sage/sagelib.nix @@ -92,7 +92,9 @@ assert (!blas.isILP64) && (!lapack.isILP64); buildPythonPackage rec { version = src.version; - pname = "sagelib"; + # Sage publishes Python metadata as "sagemath" even though this nixpkgs + # attribute is exposed as `sagelib`. + pname = "sagemath"; src = sage-src; pyproject = true;