2022-08-21 13:32:41 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
|
|
|
, future
|
|
|
|
, numpy
|
|
|
|
, scipy
|
|
|
|
, matplotlib
|
|
|
|
, scikit-learn
|
2022-09-09 14:08:57 +00:00
|
|
|
, torch
|
2022-08-21 13:32:41 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ezyrb";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "1.3.0.post2402";
|
2022-08-21 13:32:41 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mathLab";
|
|
|
|
repo = "EZyRB";
|
2022-09-30 11:47:45 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-02-07 01:22:34 +00:00
|
|
|
hash = "sha256-MiFNTz3vrN4rMHK7e4ntE35wzgnPt6yczCv7XDcUlO8=";
|
2022-08-21 13:32:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
future
|
|
|
|
numpy
|
|
|
|
scipy
|
|
|
|
matplotlib
|
|
|
|
scikit-learn
|
2022-09-09 14:08:57 +00:00
|
|
|
torch
|
2022-08-21 13:32:41 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-08-21 13:32:41 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"ezyrb"
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTestPaths = [
|
|
|
|
# Exclude long tests
|
|
|
|
"tests/test_podae.py"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Easy Reduced Basis method";
|
|
|
|
homepage = "https://mathlab.github.io/EZyRB/";
|
|
|
|
downloadPage = "https://github.com/mathLab/EZyRB/releases";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ yl3dy ];
|
|
|
|
};
|
|
|
|
}
|