Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / nengo / default.nix
blobc422278c830ceca849db5ffa804793ab84ac4fcb
1 { lib, fetchFromGitHub, buildPythonPackage
2 , numpy
3 , scipySupport ? false, scipy
4 , scikitSupport ? false, scikit-learn
5 }:
7 buildPythonPackage rec {
8   pname = "nengo";
9   version = "3.2.0";
11   src = fetchFromGitHub {
12     owner = "nengo";
13     repo = "nengo";
14     rev = "v${version}";
15     sha256 = "12lz8lzirxvwnpa74k9k48c64gs6gi092928rh97siya3i6gjs6i";
16   };
18   propagatedBuildInputs = [ numpy ]
19     ++ lib.optionals scipySupport [ scipy ]
20     ++ lib.optionals scikitSupport [ scikit-learn ];
22   # checks req missing:
23   #   pytest-allclose
24   #   pytest-plt
25   #   pytest-rng
26   doCheck = false;
28   pythonImportsCheck = [ "nengo" ];
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   };