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 numpy
29 ]
30 ++ lib.optionals scipySupport [ scipy ]
31 ++ lib.optionals scikitSupport [ scikit-learn ];
32
33 # checks req missing:
34 # pytest-allclose
35 # pytest-plt
36 # pytest-rng
37 doCheck = false;
38
39 pythonImportsCheck = [ "nengo" ];
40
41 meta = with lib; {
42 description = "Python library for creating and simulating large-scale brain models";
43 homepage = "https://nengo.ai/";
44 license = licenses.unfreeRedistributable;
45 maintainers = with maintainers; [ ];
46 };
47}