diff options
author | Andreas Enge <andreas@enge.fr> | 2023-03-20 18:21:47 +0100 |
---|---|---|
committer | Andreas Enge <andreas@enge.fr> | 2023-03-20 18:49:06 +0100 |
commit | ccb62d8feb50e2859d7c41429a9e3d9e0fe30bfe (patch) | |
tree | 4ab573cee33f277828ad553a22579175b1dda22d /gnu/packages/machine-learning.scm | |
parent | 098bd280f82350073e8280e37d56a14162eed09c (diff) | |
parent | f80215c7c4ae5ea0c316f4766e6c05ae4218ede3 (diff) |
Merge remote-tracking branch 'origin/master' into core-updates
Diffstat (limited to 'gnu/packages/machine-learning.scm')
-rw-r--r-- | gnu/packages/machine-learning.scm | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm index 8bd1d8b8bb..004568a77b 100644 --- a/gnu/packages/machine-learning.scm +++ b/gnu/packages/machine-learning.scm @@ -3816,3 +3816,45 @@ fi" original-exe original-exe))) (chmod exe #o555))))))) + +(define-public python-brian2 + (package + (name "python-brian2") + (version "2.5.1") + (source (origin + (method url-fetch) + (uri (pypi-uri "Brian2" version)) + (sha256 + (base32 + "1g48hzn3cdsvfjgz64s3kvh5d5287ggjxdyacb7wh2n5nd5iqlf7")))) + (build-system pyproject-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (setenv "HOME" "/tmp") + ;; Must be run in a different directory, otherwise compiled + ;; modules are not found. + (with-directory-excursion "/tmp" + ;; Invoking brian2.test() is preferred to running pytest. + (invoke "python" "-c" + "import brian2, sys; sys.exit(0 if brian2.test() else 1)")))))))) + (propagated-inputs (list python-cython ; Required by codegen. + python-jinja2 + python-numpy + python-py-cpuinfo + python-pyparsing + ;; Required by codegen. + python-setuptools + python-sympy)) + (native-inputs (list python-pytest python-pytest-xdist)) + (home-page "https://briansimulator.org/") + (synopsis "Clock-driven simulator for spiking neural networks") + (description + "Brian is a simulator for spiking neural networks written in Python. It +is therefore designed to be easy to learn and use, highly flexible and +easily extensible.") + (license license:cecill))) |