{ stdenv, fetchFromGitHub, python3Packages, yosys, symbiyosys, yices }: python3Packages.buildPythonPackage { name = "nmigen"; src = fetchFromGitHub { owner = "m-labs"; repo = "nmigen"; rev = "2566747061f2a50a4257895abedf6338b2b2573f"; sha256 = "1gppzmc88cicdxnsy0a9bcly4p69bfaka6g8303a811mig8cgdj9"; }; 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 ]; }; }