1{ lib, fetchFromGitHub, buildPythonPackage
2, numpy
3, scipySupport ? false, scipy
4, scikitSupport ? false, scikit-learn
5}:
6
7buildPythonPackage rec {
8 pname = "nengo";
9 version = "3.2.0";
10
11 src = fetchFromGitHub {
12 owner = "nengo";
13 repo = "nengo";
14 rev = "v${version}";
15 sha256 = "12lz8lzirxvwnpa74k9k48c64gs6gi092928rh97siya3i6gjs6i";
16 };
17
18 propagatedBuildInputs = [ numpy ]
19 ++ lib.optionals scipySupport [ scipy ]
20 ++ lib.optionals scikitSupport [ scikit-learn ];
21
22 # checks req missing:
23 # pytest-allclose
24 # pytest-plt
25 # pytest-rng
26 doCheck = false;
27
28 pythonImportsCheck = [ "nengo" ];
29
30 meta = with lib; {
31 description = "A Python library for creating and simulating large-scale brain models";
32 homepage = "https://nengo.ai/";
33 license = licenses.unfreeRedistributable;
34 maintainers = with maintainers; [ arjix ];
35 };
36}