Files
nixpkgs/pkgs/by-name/tr/troubadix/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

64 lines
1.2 KiB
Nix

{
lib,
fetchFromGitHub,
git,
python3,
}:
python3.pkgs.buildPythonApplication rec {
pname = "troubadix";
version = "25.2.4";
pyproject = true;
src = fetchFromGitHub {
owner = "greenbone";
repo = "troubadix";
tag = "v${version}";
hash = "sha256-+2G7wlhtoKmjluHsmYb62i+DvWuXlaYw6ktYb77X/LA=";
};
pythonRelaxDeps = [
"pontos"
"validators"
];
build-system = with python3.pkgs; [ poetry-core ];
dependencies = with python3.pkgs; [
chardet
charset-normalizer
pkgs.codespell
gitpython
pontos
python-magic
validators
];
nativeCheckInputs = with python3.pkgs; [
git
pytestCheckHook
];
preCheck = ''
export HOME=$(mktemp -d)
'';
pythonImportsCheck = [ "troubadix" ];
disabledTests = [
# AssertionError
"test_ok"
# TypeError
"testgit"
];
meta = with lib; {
description = "Linting tool for NASL files";
homepage = "https://github.com/greenbone/troubadix";
changelog = "https://github.com/greenbone/troubadix/releases/tag/${src.tag}";
license = licenses.gpl3Only;
maintainers = with maintainers; [ fab ];
mainProgram = "troubadix";
};
}