python3Packages.brian2: init at 2.5.1
This commit is contained in:
parent
054a983e10
commit
18d6f13520
2 changed files with 55 additions and 0 deletions
53
pkgs/development/python-modules/brian2/default.nix
Normal file
53
pkgs/development/python-modules/brian2/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -1372,6 +1372,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 { };
|
||||
|
|
Loading…
Reference in a new issue