Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 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.post2404"; 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 hash = "sha256-nu75Geyeu1nTLoGaohXB9pmbUWKgdgch9Z5OJqz9xKQ="; 27 }; 28 29 propagatedBuildInputs = [ 30 future 31 numpy 32 scipy 33 matplotlib 34 scikit-learn 35 torch 36 ]; 37 38 nativeCheckInputs = [ pytestCheckHook ]; 39 40 pythonImportsCheck = [ "ezyrb" ]; 41 42 disabledTestPaths = [ 43 # Exclude long tests 44 "tests/test_podae.py" 45 ]; 46 47 meta = with lib; { 48 description = "Easy Reduced Basis method"; 49 homepage = "https://mathlab.github.io/EZyRB/"; 50 downloadPage = "https://github.com/mathLab/EZyRB/releases"; 51 license = licenses.mit; 52 maintainers = with maintainers; [ yl3dy ]; 53 }; 54}