Unverified Commit e02828f0 authored by Theodore Ni's avatar Theodore Ni Committed by GitHub
Browse files

python312Packages.scikit-fmm: remove stale substituteInPlace, unbreak (#354509)

parents bc63a2f7 bd2ea530
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -18,18 +18,18 @@ buildPythonPackage rec {
    hash = "sha256-q6hqteXv600iH7xpCKHgRLkJYSpy9hIf/QnlsYI+jh4=";
  };

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace-fail "oldest-supported-numpy" "numpy"
  '';

  build-system = [ meson-python ];

  dependencies = [ numpy ];

  checkPhase = ''
    runHook preCheck
    # "Do not run the tests from the source directory"
    mkdir testdir; cd testdir
    (set -x
      ${python.interpreter} -c "import skfmm, sys; sys.exit(skfmm.test())"
    )
    runHook postCheck
  '';

  meta = with lib; {