24 lines
764 B
Nix
24 lines
764 B
Nix
{ stdenv, fetchFromGitHub, python3Packages, yosys, symbiyosys, yices }:
|
|
|
|
python3Packages.buildPythonPackage {
|
|
name = "nmigen";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "m-labs";
|
|
repo = "nmigen";
|
|
rev = "744e33f42df53b2bba75a808226221cc99b35de0";
|
|
sha256 = "1qsbw5s9mmc6ddk5iy3mpif6rq644jvqw95v8xa3ph86hqdj2x6v";
|
|
};
|
|
|
|
checkPhase = "PATH=${yosys}/bin:${symbiyosys}/bin:${yices}/bin:$PATH python -m unittest discover nmigen.test -v";
|
|
|
|
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 ];
|
|
};
|
|
}
|