summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/systemrdl-compiler/default.nix
blob: 70430c4777b239605338118d8cb6493d11cb5f83 (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
{
  antlr4-python3-runtime,
  buildPythonPackage,
  colorama,
  fetchFromGitHub,
  gitUpdater,
  lib,
  markdown,
  setuptools,
  setuptools-scm,
}:

buildPythonPackage rec {
  pname = "systemrdl-compiler";
  version = "1.32.1";

  pyproject = true;

  src = fetchFromGitHub {
    owner = "SystemRDL";
    repo = "systemrdl-compiler";
    tag = "v${version}";
    hash = "sha256-BTONBzNE9GfBeallS6P4E1ukPs2EzFa31/SpxEjXmKw=";
  };

  build-system = [
    setuptools
    setuptools-scm
  ];

  dependencies = [
    antlr4-python3-runtime
    colorama
    markdown
  ];

  passthru.updateScript = gitUpdater { rev-prefix = "v"; };

  meta = {
    description = "SystemRDL 2.0 language compiler front-end";
    homepage = "https://systemrdl-compiler.readthedocs.io/en/stable/";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.jmbaur ];
  };
}