From 779cede44a8d049fc569671d9c5ba5920ad56f16 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 7 Jun 2024 10:53:43 +0200 Subject: [PATCH] sr2t: init at 0.0.26 Tool to convert scanning reports to a tabular format https://gitlab.com/0bs1d1an/sr2t --- pkgs/by-name/sr/sr2t/package.nix | 40 ++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 pkgs/by-name/sr/sr2t/package.nix diff --git a/pkgs/by-name/sr/sr2t/package.nix b/pkgs/by-name/sr/sr2t/package.nix new file mode 100644 index 000000000000..e49303258a16 --- /dev/null +++ b/pkgs/by-name/sr/sr2t/package.nix @@ -0,0 +1,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"; + }; +}