41 lines
854 B
Nix
41 lines
854 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
meson-python,
|
|
numpy,
|
|
python,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "scikit-fmm";
|
|
version = "2024.9.16";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
pname = "scikit_fmm";
|
|
inherit version;
|
|
hash = "sha256-q6hqteXv600iH7xpCKHgRLkJYSpy9hIf/QnlsYI+jh4=";
|
|
};
|
|
|
|
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; {
|
|
description = "Python extension module which implements the fast marching method";
|
|
homepage = "https://github.com/scikit-fmm/scikit-fmm";
|
|
license = licenses.bsd3;
|
|
maintainers = [ ];
|
|
};
|
|
}
|