1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pyserial
5, asyncserial
6, jinja2
7, migen
8, numpy
9}:
10
11buildPythonPackage rec {
12 pname = "misoc";
13 version = "unstable-2022-10-08";
14
15 src = fetchFromGitHub {
16 owner = "m-labs";
17 repo = "misoc";
18 rev = "6a7c670ab6120b8136f652c41d907eb0fb16ed54";
19 hash = "sha256-dLDp0xg5y5b443hD7vbJFobHxbhtnj68RdZnQ7ckgp4=";
20 };
21
22 propagatedBuildInputs = [
23 pyserial
24 asyncserial
25 jinja2
26 migen
27 ];
28
29 nativeCheckInputs = [
30 numpy
31 ];
32
33 pythonImportsCheck = [ "misoc" ];
34
35 meta = with lib; {
36 description = "The original high performance and small footprint system-on-chip based on Migen";
37 homepage = "https://github.com/m-labs/misoc";
38 license = licenses.bsd2;
39 maintainers = with maintainers; [ doronbehar ];
40 };
41}