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 rev = "refs/tags/v${version}";
22 sha256 = "sha256-b9mPjKdewIqIeRrddV1/M3bghSyox7Lz6VbfSLCHZjA=";
23 };
24
25 nativeBuildInputs = [ setuptools ];
26
27 propagatedBuildInputs = [
28 numpy
29 ] ++ lib.optionals scipySupport [ scipy ] ++ lib.optionals scikitSupport [ scikit-learn ];
30
31 # checks req missing:
32 # pytest-allclose
33 # pytest-plt
34 # pytest-rng
35 doCheck = false;
36
37 pythonImportsCheck = [ "nengo" ];
38
39 meta = with lib; {
40 description = "A Python library for creating and simulating large-scale brain models";
41 homepage = "https://nengo.ai/";
42 license = licenses.unfreeRedistributable;
43 maintainers = with maintainers; [ arjix ];
44 };
45}