at 25.11-pre 973 B view raw
1{ 2 lib, 3 fetchFromGitHub, 4 buildPythonPackage, 5 setuptools, 6 numpy, 7 scipySupport ? false, 8 scipy, 9 scikitSupport ? false, 10 scikit-learn, 11}: 12 13buildPythonPackage rec { 14 pname = "nengo"; 15 version = "4.0.0"; 16 pyproject = true; 17 18 src = fetchFromGitHub { 19 owner = "nengo"; 20 repo = "nengo"; 21 tag = "v${version}"; 22 sha256 = "sha256-b9mPjKdewIqIeRrddV1/M3bghSyox7Lz6VbfSLCHZjA="; 23 }; 24 25 nativeBuildInputs = [ setuptools ]; 26 27 propagatedBuildInputs = 28 [ 29 numpy 30 ] 31 ++ lib.optionals scipySupport [ scipy ] 32 ++ lib.optionals scikitSupport [ scikit-learn ]; 33 34 # checks req missing: 35 # pytest-allclose 36 # pytest-plt 37 # pytest-rng 38 doCheck = false; 39 40 pythonImportsCheck = [ "nengo" ]; 41 42 meta = with lib; { 43 description = "Python library for creating and simulating large-scale brain models"; 44 homepage = "https://nengo.ai/"; 45 license = licenses.unfreeRedistributable; 46 maintainers = with maintainers; [ arjix ]; 47 }; 48}