about summary refs log tree commit diff
path: root/pkgs/by-name/sr/sr2t/package.nix
blob: e49303258a1655f877631ca726592ccdaf69804a (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
{
  lib,
  python3,
  fetchFromGitLab,
}:

python3.pkgs.buildPythonApplication rec {
  pname = "sr2t";
  version = "0.0.26";
  pyproject = true;

  src = fetchFromGitLab {
    owner = "0bs1d1an";
    repo = "sr2t";
    rev = "refs/tags/${version}";
    hash = "sha256-BPsYnKBTxt5WUd2+WumMdVi8p6iryOWG2MjI97qbaCw=";
  };

  build-system = with python3.pkgs; [ hatchling ];

  dependencies = with python3.pkgs; [
    prettytable
    pyyaml
    setuptools
    xlsxwriter
  ];

  # Project has no tests
  doCheck = false;

  pythonImportsCheck = [ "sr2t" ];

  meta = with lib; {
    description = "Tool to convert scanning reports to a tabular format";
    homepage = "https://gitlab.com/0bs1d1an/sr2t";
    license = licenses.gpl3Only;
    maintainers = with maintainers; [ fab ];
    mainProgram = "sr2t";
  };
}