depot/third_party/nixpkgs/pkgs/development/python-modules/ezyrb/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

54 lines
998 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
future,
numpy,
scipy,
matplotlib,
scikit-learn,
torch,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "ezyrb";
version = "1.3.0.post2404";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "mathLab";
repo = "EZyRB";
rev = "refs/tags/v${version}";
hash = "sha256-nu75Geyeu1nTLoGaohXB9pmbUWKgdgch9Z5OJqz9xKQ=";
};
propagatedBuildInputs = [
future
numpy
scipy
matplotlib
scikit-learn
torch
];
nativeCheckInputs = [ 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 ];
};
}