python312Packages.pydmd: 2025.01.01 -> 2025.03.01

Diff: https://github.com/PyDMD/PyDMD/compare/refs/tags/2025.01.01...2025.03.01

Changelog: https://github.com/PyDMD/PyDMD/releases/tag/2025.03.01
This commit is contained in:
Gaetan Lepage
2025-03-18 09:21:56 +01:00
parent 52a0e458e4
commit 98f7ced0d7
@@ -1,64 +1,70 @@
{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
setuptools-git-versioning,
# dependencies
ezyrb,
future,
h5netcdf,
matplotlib,
numpy,
pytestCheckHook,
pytest-mock,
pythonOlder,
scipy,
ezyrb,
xarray,
# tests
pytest-mock,
pytestCheckHook,
}:
let
self = buildPythonPackage rec {
pname = "pydmd";
version = "2025.01.01";
pyproject = true;
buildPythonPackage rec {
pname = "pydmd";
version = "2025.03.01";
pyproject = true;
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "PyDMD";
repo = "PyDMD";
tag = version;
hash = "sha256-edjBr0LsfyBEi4YZiTY0GegqgESWgSFennZOi2YFhC4=";
};
build-system = [ setuptools ];
propagatedBuildInputs = [
future
matplotlib
numpy
scipy
ezyrb
];
nativeCheckInputs = [
pytestCheckHook
pytest-mock
];
pytestFlagsArray = [ "tests/test_dmdbase.py" ];
pythonImportsCheck = [ "pydmd" ];
passthru.tests = self.overrideAttrs (old: {
pytestFlagsArray = [ ];
});
meta = with lib; {
description = "Python Dynamic Mode Decomposition";
homepage = "https://pydmd.github.io/PyDMD/";
changelog = "https://github.com/PyDMD/PyDMD/releases/tag/${src.tag}";
license = licenses.mit;
maintainers = with maintainers; [ yl3dy ];
};
src = fetchFromGitHub {
owner = "PyDMD";
repo = "PyDMD";
tag = version;
hash = "sha256-2pfWW+CLSDr6tJrcLpodil/RnhLTZ5Yqw0ThTCqO0MY=";
};
in
self
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "setuptools-git-versioning>=2.0,<3" "setuptools-git-versioning"
'';
build-system = [
setuptools
setuptools-git-versioning
];
dependencies = [
ezyrb
future
h5netcdf
matplotlib
numpy
scipy
xarray
];
pythonImportsCheck = [ "pydmd" ];
nativeCheckInputs = [
pytest-mock
pytestCheckHook
];
meta = {
description = "Python Dynamic Mode Decomposition";
homepage = "https://pydmd.github.io/PyDMD/";
changelog = "https://github.com/PyDMD/PyDMD/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ yl3dy ];
};
}