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-05-15 18:55:32 +08:00
|
|
|
rev = "c337246fc581ccac0273f5661f65815266144862";
|
|
|
|
sha256 = "03gbd5k87w9ifa8iz0wprpswv7qn93swzcvjnvs5czn39lwvwgh4";
|
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
|
|
|
|
|
|
|
propagatedBuildInputs = [ python3Packages.bitarray python3Packages.pyvcd ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A refreshed Python toolbox for building complex digital hardware";
|
|
|
|
homepage = "https://lambdaconcept.com";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = [ maintainers.sb0 ];
|
|
|
|
};
|
|
|
|
}
|