Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / nengo / default.nix
blob86231c3f040172c71112841666be290811ef3d13
1 { lib
2 , fetchFromGitHub
3 , buildPythonPackage
4 , setuptools
5 , numpy
6 , scipySupport ? false, scipy
7 , scikitSupport ? false, scikit-learn
8 }:
10 buildPythonPackage rec {
11   pname = "nengo";
12   version = "4.0.0";
13   pyproject = true;
15   src = fetchFromGitHub {
16     owner = "nengo";
17     repo = "nengo";
18     rev = "refs/tags/v${version}";
19     sha256 = "sha256-b9mPjKdewIqIeRrddV1/M3bghSyox7Lz6VbfSLCHZjA=";
20   };
22   nativeBuildInputs = [
23     setuptools
24   ];
26   propagatedBuildInputs = [ numpy ]
27     ++ lib.optionals scipySupport [ scipy ]
28     ++ lib.optionals scikitSupport [ scikit-learn ];
30   # checks req missing:
31   #   pytest-allclose
32   #   pytest-plt
33   #   pytest-rng
34   doCheck = false;
36   pythonImportsCheck = [ "nengo" ];
38   meta = with lib; {
39     description = "A Python library for creating and simulating large-scale brain models";
40     homepage    = "https://nengo.ai/";
41     license     = licenses.unfreeRedistributable;
42     maintainers = with maintainers; [ arjix ];
43   };