pyamg: fix build

This commit is contained in:
Stephen Huan
2026-03-26 16:19:18 -04:00
parent 6c9a78c09f
commit bc15f4b68a
@@ -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";
};
}