1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 meson-python,
6 numpy,
7 python,
8}:
9
10buildPythonPackage rec {
11 pname = "scikit-fmm";
12 version = "2024.5.29";
13 pyproject = true;
14
15 src = fetchPypi {
16 pname = "scikit_fmm";
17 inherit version;
18 hash = "sha256-sy7J5UKXhuL5K8zr3lBulUMekwNlBFfC8C2VzguVTUE=";
19 };
20
21 postPatch = ''
22 substituteInPlace pyproject.toml \
23 --replace-fail "oldest-supported-numpy" "numpy"
24 '';
25
26 build-system = [ meson-python ];
27
28 dependencies = [ numpy ];
29
30 checkPhase = ''
31 mkdir testdir; cd testdir
32 ${python.interpreter} -c "import skfmm, sys; sys.exit(skfmm.test())"
33 '';
34
35 meta = with lib; {
36 description = "Python extension module which implements the fast marching method";
37 homepage = "https://github.com/scikit-fmm/scikit-fmm";
38 license = licenses.bsd3;
39 maintainers = [ ];
40 };
41}