From bc15f4b68a23df8b8797787990721ffe8361da87 Mon Sep 17 00:00:00 2001 From: Stephen Huan Date: Tue, 24 Mar 2026 06:25:23 -0400 Subject: [PATCH 1/2] pyamg: fix build --- pkgs/development/python-modules/pyamg/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/development/python-modules/pyamg/default.nix b/pkgs/development/python-modules/pyamg/default.nix index 4a00b7de772b..30f5bbd699cb 100644 --- a/pkgs/development/python-modules/pyamg/default.nix +++ b/pkgs/development/python-modules/pyamg/default.nix @@ -1,5 +1,6 @@ { lib, + stdenv, buildPythonPackage, fetchPypi, numpy, @@ -20,6 +21,14 @@ buildPythonPackage rec { hash = "sha256-UyPQ8aTNmZviRqkNWAyeHptYS5iIf2KY05dhEIfvhgs="; }; + # removed by next version, https://github.com/pyamg/pyamg/pull/420 + postPatch = '' + substituteInPlace pyproject.toml \ + --replace-fail \ + 'setuptools_scm[toml]==8.3.0' \ + 'setuptools_scm>=8.3.0' \ + ''; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ @@ -51,5 +60,6 @@ buildPythonPackage rec { changelog = "https://github.com/pyamg/pyamg/blob/v${version}/changelog.md"; license = lib.licenses.mit; maintainers = [ ]; + broken = stdenv.hostPlatform.isDarwin && lib.versionAtLeast python.version "3.14"; }; } From 840b1db1b5c657e48b6fe8e5b0cf32072471052c Mon Sep 17 00:00:00 2001 From: Stephen Huan Date: Tue, 24 Mar 2026 20:55:59 -0400 Subject: [PATCH 2/2] pyamg: add stephen-huan as maintainer --- pkgs/development/python-modules/pyamg/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/pyamg/default.nix b/pkgs/development/python-modules/pyamg/default.nix index 30f5bbd699cb..da6f484b11f5 100644 --- a/pkgs/development/python-modules/pyamg/default.nix +++ b/pkgs/development/python-modules/pyamg/default.nix @@ -59,7 +59,7 @@ buildPythonPackage rec { homepage = "https://github.com/pyamg/pyamg"; changelog = "https://github.com/pyamg/pyamg/blob/v${version}/changelog.md"; license = lib.licenses.mit; - maintainers = [ ]; + maintainers = with lib.maintainers; [ stephen-huan ]; broken = stdenv.hostPlatform.isDarwin && lib.versionAtLeast python.version "3.14"; }; }