troubadix: init at 24.4.0
A linting tool for NASL files https://github.com/greenbone/troubadix
This commit is contained in:
parent
be14b2e8fc
commit
1bd82603ae
1 changed files with 62 additions and 0 deletions
62
pkgs/by-name/tr/troubadix/package.nix
Normal file
62
pkgs/by-name/tr/troubadix/package.nix
Normal file
|
@ -0,0 +1,62 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
fetchFromGitHub,
|
||||||
|
git,
|
||||||
|
python3,
|
||||||
|
}:
|
||||||
|
|
||||||
|
python3.pkgs.buildPythonApplication rec {
|
||||||
|
pname = "troubadix";
|
||||||
|
version = "24.4.0";
|
||||||
|
pyproject = true;
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "greenbone";
|
||||||
|
repo = "troubadix";
|
||||||
|
rev = "refs/tags/v${version}";
|
||||||
|
hash = "sha256-I/c26dqD7cJ0AtLhJK4XaR5vvud/NsoeXr6/k6+Dezk=";
|
||||||
|
};
|
||||||
|
|
||||||
|
pythonRelaxDeps = [ "validators" ];
|
||||||
|
|
||||||
|
build-system = with python3.pkgs; [ poetry-core ];
|
||||||
|
|
||||||
|
nativeBuildInputs = with python3.pkgs; [ pythonRelaxDepsHook ];
|
||||||
|
|
||||||
|
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 = "A linting tool for NASL files";
|
||||||
|
homepage = "https://github.com/greenbone/troubadix";
|
||||||
|
changelog = "https://github.com/greenbone/troubadix/releases/tag/v${version}";
|
||||||
|
license = licenses.gpl3Only;
|
||||||
|
maintainers = with maintainers; [ fab ];
|
||||||
|
mainProgram = "troubadix";
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue