Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.1 kB · 59 lines
Nix
at litex
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960{ 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; hash = "sha256-x1EcS7PFCsjPYsq3Lt87SJRW4J5DE/OfdFs3NuyHiLw="; };
patches = [ # Fix deprecated numpy types # https://sources.debian.org/data/main/b/brian/2.5.1-3/debian/patches/numpy1.24.patch ./numpy1.24.patch ];
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 ]; };}