summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/misoc/default.nix
blob: 74d73dc5c964e6d0906666d5ed22a156e9eca867 (plain)
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
42
43
44
45
46
47
48
49
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,

  # dependencies
  pyserial,
  asyncserial,
  jinja2,
  migen,

  # tests
  unittestCheckHook,
  numpy,
}:

buildPythonPackage {
  pname = "misoc";
  version = "0.12-unstable-2025-10-03";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "m-labs";
    repo = "misoc";
    rev = "59043e979f78934f2c2f99ac417c65aa0c7be0b9";
    hash = "sha256-dXamAZkLdTC9UeZV6biipsZN4LHO+ZLoXV4LO+L7HTM=";
  };

  dependencies = [
    pyserial
    asyncserial
    jinja2
    migen
  ];

  nativeCheckInputs = [
    unittestCheckHook
    numpy
  ];

  pythonImportsCheck = [ "misoc" ];

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