1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 meson-python,
6 numpy,
7 python,
8}:
9
10buildPythonPackage rec {
11 pname = "scikit-fmm";
12 version = "2025.6.23";
13 pyproject = true;
14
15 src = fetchPypi {
16 pname = "scikit_fmm";
17 inherit version;
18 hash = "sha256-oyCPXziB5At4eNESG6ObjVfxvDj7Tl8NnRxmqbAH5E8=";
19 };
20
21 build-system = [ meson-python ];
22
23 dependencies = [ numpy ];
24
25 checkPhase = ''
26 runHook preCheck
27 # "Do not run the tests from the source directory"
28 mkdir testdir; cd testdir
29 (set -x
30 ${python.interpreter} -c "import skfmm, sys; sys.exit(skfmm.test())"
31 )
32 runHook postCheck
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}