2019-03-19 15:46:28 +08:00
|
|
|
{ stdenv, fetchFromGitHub, python3Packages, yosys, symbiyosys, yices }:
|
|
|
|
|
|
|
|
python3Packages.buildPythonPackage {
|
|
|
|
name = "nmigen";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "m-labs";
|
|
|
|
repo = "nmigen";
|
2019-07-08 10:14:18 +08:00
|
|
|
rev = "31c54d32efb9c2851460adc954f5d1fa97800925";
|
2019-07-24 15:50:54 +08:00
|
|
|
sha256 = "1hyjs9pnqp0291pflcxp7yi944r49fgbh2j01r6h0w42q540dj5s";
|
2019-03-19 15:46:28 +08:00
|
|
|
};
|
|
|
|
|
2019-04-17 16:08:37 +08:00
|
|
|
checkPhase = "PATH=${yosys}/bin:${symbiyosys}/bin:${yices}/bin:$PATH python -m unittest discover nmigen.test -v";
|
2019-03-19 15:46:28 +08:00
|
|
|
|
2019-06-06 18:11:31 +08:00
|
|
|
propagatedBuildInputs = [ python3Packages.bitarray python3Packages.pyvcd python3Packages.jinja2 ];
|
2019-03-19 15:46:28 +08:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A refreshed Python toolbox for building complex digital hardware";
|
2019-06-11 22:47:38 +08:00
|
|
|
homepage = "https://m-labs.hk";
|
2019-03-19 15:46:28 +08:00
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = [ maintainers.sb0 ];
|
|
|
|
};
|
|
|
|
}
|