1{
2 lib,
3 stdenv,
4 buildPythonPackage,
5 fetchFromGitHub,
6 pythonOlder,
7 future,
8 numpy,
9 scipy,
10 matplotlib,
11 scikit-learn,
12 torch,
13 pytestCheckHook,
14}:
15
16buildPythonPackage rec {
17 pname = "ezyrb";
18 version = "1.3.0.post2404";
19 format = "setuptools";
20
21 disabled = pythonOlder "3.7";
22
23 src = fetchFromGitHub {
24 owner = "mathLab";
25 repo = "EZyRB";
26 rev = "refs/tags/v${version}";
27 hash = "sha256-nu75Geyeu1nTLoGaohXB9pmbUWKgdgch9Z5OJqz9xKQ=";
28 };
29
30 propagatedBuildInputs = [
31 future
32 numpy
33 scipy
34 matplotlib
35 scikit-learn
36 torch
37 ];
38
39 nativeCheckInputs = [ pytestCheckHook ];
40
41 pythonImportsCheck = [ "ezyrb" ];
42
43 disabledTestPaths = [
44 # Exclude long tests
45 "tests/test_podae.py"
46 ];
47
48 meta = with lib; {
49 description = "Easy Reduced Basis method";
50 homepage = "https://mathlab.github.io/EZyRB/";
51 downloadPage = "https://github.com/mathLab/EZyRB/releases";
52 license = licenses.mit;
53 maintainers = with maintainers; [ yl3dy ];
54 };
55}