depot/third_party/nixpkgs/pkgs/development/python-modules/scikit-fmm/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

41 lines
871 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 = with maintainers; [ ];
};
}