about summary refs log tree commit diff
path: root/pkgs/development/python-modules/misoc/default.nix
blob: 447bde58c32868b7d182bfffae284460d42cb70b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{ lib
, buildPythonPackage
, fetchFromGitHub
, pyserial
, asyncserial
, jinja2
, migen
, numpy
}:

buildPythonPackage rec {
  pname = "misoc";
  version = "unstable-2022-10-08";

  src = fetchFromGitHub {
    owner = "m-labs";
    repo = "misoc";
    rev = "6a7c670ab6120b8136f652c41d907eb0fb16ed54";
    hash = "sha256-dLDp0xg5y5b443hD7vbJFobHxbhtnj68RdZnQ7ckgp4=";
  };

  propagatedBuildInputs = [
    pyserial
    asyncserial
    jinja2
    migen
  ];

  checkInputs = [
    numpy
  ];

  pythonImportsCheck = [ "misoc" ];

  meta = with lib; {
    description = "The original high performance and small footprint system-on-chip based on Migen";
    homepage = "https://github.com/m-labs/misoc";
    license = licenses.bsd2;
    maintainers = with maintainers; [ doronbehar ];
  };
}