1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pyserial,
6 asyncserial,
7 jinja2,
8 migen,
9 numpy,
10}:
11
12buildPythonPackage rec {
13 pname = "misoc";
14 version = "unstable-2022-10-08";
15 format = "setuptools";
16
17 src = fetchFromGitHub {
18 owner = "m-labs";
19 repo = "misoc";
20 rev = "6a7c670ab6120b8136f652c41d907eb0fb16ed54";
21 hash = "sha256-dLDp0xg5y5b443hD7vbJFobHxbhtnj68RdZnQ7ckgp4=";
22 };
23
24 propagatedBuildInputs = [
25 pyserial
26 asyncserial
27 jinja2
28 migen
29 ];
30
31 nativeCheckInputs = [ numpy ];
32
33 pythonImportsCheck = [ "misoc" ];
34
35 meta = with lib; {
36 description = "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}