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