From 04531da0fdb56e63448a073ac08f11f4fd8953df Mon Sep 17 00:00:00 2001 From: arjix Date: Mon, 12 Jul 2021 14:41:16 +0200 Subject: [PATCH] python3Packages.nengo: init at 3.1.0 --- .../python-modules/nengo/default.nix | 36 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 38 insertions(+) create mode 100644 pkgs/development/python-modules/nengo/default.nix diff --git a/pkgs/development/python-modules/nengo/default.nix b/pkgs/development/python-modules/nengo/default.nix new file mode 100644 index 000000000000..566540a4c972 --- /dev/null +++ b/pkgs/development/python-modules/nengo/default.nix @@ -0,0 +1,36 @@ +{ lib, fetchFromGitHub, buildPythonPackage +, numpy +, scipySupport ? false, scipy +, scikitSupport ? false, scikit-learn +}: + +buildPythonPackage rec { + pname = "nengo"; + version = "3.1.0"; + + src = fetchFromGitHub { + owner = "nengo"; + repo = "nengo"; + rev = "v${version}"; + sha256 = "1wkayimf2jqkbr6piikh5zd6yw8gf2qv4v4bfrprs4laa6wzh2qh"; + }; + + propagatedBuildInputs = [ numpy ] + ++ lib.optionals scipySupport [ scipy ] + ++ lib.optionals scikitSupport [ scikit-learn ]; + + # checks req missing: + # pytest-allclose + # pytest-plt + # pytest-rng + doCheck = false; + + pythonImportsCheck = [ "nengo" ]; + + meta = with lib; { + description = "A Python library for creating and simulating large-scale brain models"; + homepage = "https://nengo.ai/"; + license = licenses.unfreeRedistributable; + maintainers = with maintainers; [ arjix ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 78db6b3db5c9..1328b06b6aa9 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4726,6 +4726,8 @@ in { ndtypes = callPackage ../development/python-modules/ndtypes { }; + nengo = callPackage ../development/python-modules/nengo { }; + neo = callPackage ../development/python-modules/neo { }; nest-asyncio = callPackage ../development/python-modules/nest-asyncio { };