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