2019-07-11 21:43:34 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, numpy
|
|
|
|
, python
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "scikit-fmm";
|
2021-03-24 09:28:27 +00:00
|
|
|
version = "2021.2.2";
|
2019-07-11 21:43:34 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-24 09:28:27 +00:00
|
|
|
sha256 = "809e20016e6341e4de29b6be4befc477b7002cfd5e2a11b80deae16005f35670";
|
2019-07-11 21:43:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
mkdir testdir; cd testdir
|
|
|
|
${python.interpreter} -c "import skfmm, sys; sys.exit(skfmm.test())"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A Python extension module which implements the fast marching method";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/scikit-fmm/scikit-fmm";
|
2019-07-11 21:43:34 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ costrouc ];
|
|
|
|
};
|
|
|
|
}
|