2021-08-25 08:27:29 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, python
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildPythonPackage
|
|
|
|
, future
|
|
|
|
, numpy
|
|
|
|
, scipy
|
|
|
|
, matplotlib
|
|
|
|
, nose
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pydmd";
|
2021-12-26 17:43:05 +00:00
|
|
|
version = "0.4";
|
2021-08-25 08:27:29 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mathLab";
|
|
|
|
repo = "PyDMD";
|
|
|
|
rev = "v${version}";
|
2021-12-26 17:43:05 +00:00
|
|
|
sha256 = "1qwa3dyrrm20x0pzr7rklcw7433fd822n4m8bbbdd7z83xh6xm8g";
|
2021-08-25 08:27:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ future numpy scipy matplotlib ];
|
|
|
|
checkInputs = [ nose ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} test.py
|
|
|
|
'';
|
|
|
|
pythonImportsCheck = [ "pydmd" ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Python Dynamic Mode Decomposition";
|
|
|
|
homepage = "https://mathlab.github.io/PyDMD/";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ yl3dy ];
|
|
|
|
broken = stdenv.hostPlatform.isAarch64;
|
|
|
|
};
|
|
|
|
}
|