2021-08-20 23:37:37 +01:00
|
|
|
{ lib
|
2021-08-21 18:56:26 +01:00
|
|
|
, stdenv
|
2021-08-20 23:37:37 +01:00
|
|
|
, buildPythonPackage
|
2022-01-05 14:13:57 +00:00
|
|
|
, fetchFromGitHub
|
2021-08-20 23:37:37 +01:00
|
|
|
, future
|
2022-01-05 14:13:57 +00:00
|
|
|
, matplotlib
|
2021-08-20 23:37:37 +01:00
|
|
|
, numpy
|
2022-01-05 14:13:57 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2021-08-20 23:37:37 +01:00
|
|
|
, scipy
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pydmd";
|
2021-11-25 22:47:06 +00:00
|
|
|
version = "0.4";
|
2022-01-05 14:13:57 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2021-08-20 23:37:37 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mathLab";
|
|
|
|
repo = "PyDMD";
|
|
|
|
rev = "v${version}";
|
2021-11-25 22:47:06 +00:00
|
|
|
sha256 = "1qwa3dyrrm20x0pzr7rklcw7433fd822n4m8bbbdd7z83xh6xm8g";
|
2021-08-20 23:37:37 +01:00
|
|
|
};
|
|
|
|
|
2022-01-05 14:13:57 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
future
|
|
|
|
matplotlib
|
|
|
|
numpy
|
|
|
|
scipy
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTestPaths = [
|
|
|
|
# Those tests take over 1.5 h on hydra. Also, an error and two failures
|
|
|
|
"tests/test_spdmd.py"
|
|
|
|
];
|
2021-08-20 23:37:37 +01:00
|
|
|
|
2022-01-05 14:13:57 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"pydmd"
|
|
|
|
];
|
2021-08-20 23:37:37 +01:00
|
|
|
|
2022-01-05 14:13:57 +00:00
|
|
|
meta = with lib; {
|
2021-08-20 23:37:37 +01:00
|
|
|
description = "Python Dynamic Mode Decomposition";
|
|
|
|
homepage = "https://mathlab.github.io/PyDMD/";
|
2022-01-05 14:13:57 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ yl3dy ];
|
2021-08-21 18:56:26 +01:00
|
|
|
broken = stdenv.hostPlatform.isAarch64;
|
2021-08-20 23:37:37 +01:00
|
|
|
};
|
|
|
|
}
|