24 lines
779 B
Nix
24 lines
779 B
Nix
{ stdenv, fetchFromGitHub, python3Packages, yosys, symbiyosys, yices }:
|
|
|
|
python3Packages.buildPythonPackage {
|
|
name = "nmigen";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "m-labs";
|
|
repo = "nmigen";
|
|
rev = "9a1048af50aa2f7b8b75260832e8849255190253";
|
|
sha256 = "1f1i661wyn674hcsalmg5py2z178kqdhmfi1lwpfjz3vhgxsy0cv";
|
|
};
|
|
|
|
checkPhase = "PATH=${yosys}/bin:${symbiyosys}/bin:${yices}/bin:$PATH python -m unittest discover nmigen.test -v";
|
|
|
|
propagatedBuildInputs = [ python3Packages.bitarray python3Packages.pyvcd python3Packages.jinja2 ];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A refreshed Python toolbox for building complex digital hardware";
|
|
homepage = "https://m-labs.hk";
|
|
license = licenses.bsd2;
|
|
maintainers = [ maintainers.sb0 ];
|
|
};
|
|
}
|