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