b450903751
GitOrigin-RevId: 74a1793c659d09d7cf738005308b1f86c90cb59b
58 lines
983 B
Nix
58 lines
983 B
Nix
{ lib
|
|
, stdenv
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
, future
|
|
, numpy
|
|
, scipy
|
|
, matplotlib
|
|
, scikit-learn
|
|
, torch
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ezyrb";
|
|
version = "1.3.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mathLab";
|
|
repo = "EZyRB";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-tFkz+j97m+Bgk/87snQMXtgZnykiWYyWJJLaqwRKiaY=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
future
|
|
numpy
|
|
scipy
|
|
matplotlib
|
|
scikit-learn
|
|
torch
|
|
];
|
|
|
|
checkInputs = [
|
|
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 ];
|
|
};
|
|
}
|