5ca88bfbb9
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
41 lines
853 B
Nix
41 lines
853 B
Nix
{
|
|
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 = [ ];
|
|
};
|
|
}
|