2021-08-25 08:27:29 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, buildPythonPackage
|
2022-01-07 04:07:37 +00:00
|
|
|
, fetchFromGitHub
|
2021-08-25 08:27:29 +00:00
|
|
|
, future
|
2022-01-07 04:07:37 +00:00
|
|
|
, matplotlib
|
2021-08-25 08:27:29 +00:00
|
|
|
, numpy
|
2022-01-07 04:07:37 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2021-08-25 08:27:29 +00:00
|
|
|
, scipy
|
2022-08-21 13:32:41 +00:00
|
|
|
, ezyrb
|
2021-08-25 08:27:29 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pydmd";
|
2023-01-11 07:51:40 +00:00
|
|
|
version = "0.4.0.post2301";
|
2022-01-07 04:07:37 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2021-08-25 08:27:29 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mathLab";
|
|
|
|
repo = "PyDMD";
|
2022-08-12 12:06:08 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-01-11 07:51:40 +00:00
|
|
|
hash = "sha256-0ss7yyT6u0if+YjBYNbKtx5beJU43JC1LD9rqHPKBS8=";
|
2021-08-25 08:27:29 +00:00
|
|
|
};
|
|
|
|
|
2022-01-07 04:07:37 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
future
|
|
|
|
matplotlib
|
|
|
|
numpy
|
|
|
|
scipy
|
2022-08-21 13:32:41 +00:00
|
|
|
ezyrb
|
2022-01-07 04:07:37 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-01-07 04:07:37 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
pytestFlagsArray = [
|
|
|
|
# test suite takes over 100 vCPU hours, just run small subset of it.
|
|
|
|
# TODO: Add a passthru.tests with all tests
|
|
|
|
"tests/test_dmdbase.py"
|
2022-01-07 04:07:37 +00:00
|
|
|
];
|
2021-08-25 08:27:29 +00:00
|
|
|
|
2022-01-07 04:07:37 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"pydmd"
|
|
|
|
];
|
2021-08-25 08:27:29 +00:00
|
|
|
|
2022-01-07 04:07:37 +00:00
|
|
|
meta = with lib; {
|
2021-08-25 08:27:29 +00:00
|
|
|
description = "Python Dynamic Mode Decomposition";
|
|
|
|
homepage = "https://mathlab.github.io/PyDMD/";
|
2023-01-11 07:51:40 +00:00
|
|
|
changelog = "https://github.com/mathLab/PyDMD/releases/tag/v${version}";
|
2022-01-07 04:07:37 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ yl3dy ];
|
2021-08-25 08:27:29 +00:00
|
|
|
broken = stdenv.hostPlatform.isAarch64;
|
|
|
|
};
|
|
|
|
}
|