Unverified Commit 67dddbae authored by Yohann Boniface's avatar Yohann Boniface Committed by GitHub
Browse files

pyamg: fix build (#502994)

parents 211c6ea8 840b1db1
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
{
  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 = [
@@ -50,6 +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";
  };
}