Merge pull request #198885 from jiegec/brian2

python3Packages.brian2: init at 2.5.1
This commit is contained in:
Sandro 2023-02-17 17:43:04 +01:00 committed by GitHub
commit 223092f727
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 55 additions and 0 deletions

View File

@ -0,0 +1,53 @@
{ lib
, buildPythonPackage
, fetchPypi
, cython
, jinja2
, numpy
, pyparsing
, setuptools
, sympy
, pytest
, pytest-xdist
, python
}:
buildPythonPackage rec {
pname = "brian2";
version = "2.5.1";
src = fetchPypi {
pname = "Brian2";
inherit version;
sha256 = "sha256-x1EcS7PFCsjPYsq3Lt87SJRW4J5DE/OfdFs3NuyHiLw=";
};
propagatedBuildInputs = [
cython
jinja2
numpy
pyparsing
setuptools
sympy
];
checkInputs = [
pytest
pytest-xdist
];
checkPhase = ''
runHook preCheck
# Cython cache lies in home directory
export HOME=$(mktemp -d)
cd $HOME && ${python.interpreter} -c "import brian2;assert brian2.test()"
runHook postCheck
'';
meta = with lib; {
description = "A clock-driven simulator for spiking neural networks";
homepage = "https://briansimulator.org/";
license = licenses.cecill21;
maintainers = with maintainers; [ jiegec ];
};
}

View File

@ -1421,6 +1421,8 @@ self: super: with self; {
brelpy = callPackage ../development/python-modules/brelpy { };
brian2 = callPackage ../development/python-modules/brian2 { };
broadlink = callPackage ../development/python-modules/broadlink { };
brother = callPackage ../development/python-modules/brother { };