summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/peakrdl-markdown/default.nix
blob: eb59158f6ad83bf3373273f051be4a701a5d099d (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
{
  buildPythonPackage,
  fetchFromGitHub,
  gitUpdater,
  lib,
  peakrdl,
  py-markdown-table,
  poetry-core,
}:

buildPythonPackage rec {
  pname = "peakrdl-markdown";
  version = "1.0.3";

  pyproject = true;

  src = fetchFromGitHub {
    owner = "SystemRDL";
    repo = "PeakRDL-markdown";
    tag = "v${version}";
    hash = "sha256-Dt8FxnvvXY9nVhFehIcfSC9mFbbEzEuaVnBMu032dug=";
  };

  build-system = [ poetry-core ];

  dependencies = [
    peakrdl
    py-markdown-table
  ];

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

  meta = {
    description = "Export Markdown description from the systemrdl-compiler register model";
    homepage = "https://peakrdl-markdown.readthedocs.io/";
    license = lib.licenses.gpl3Only;
    maintainers = [ lib.maintainers.jmbaur ];
  };
}