33 lines
697 B
Nix
33 lines
697 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, numpy
|
|
, python
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "scikit-fmm";
|
|
version = "2021.10.29";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "799f36e918a2b64ed8434d6c4fef3a1a47757055955c240fba0d4aadccca26b2";
|
|
};
|
|
|
|
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";
|
|
homepage = "https://github.com/scikit-fmm/scikit-fmm";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ costrouc ];
|
|
};
|
|
}
|