python312Packages.types-aiobotocore: 2.15.2 -> 2.15.2.post3 (#361801)
[NixPkgs.git] / pkgs / by-name / tr / troubadix / package.nix
blob4fbfd93db9afa7bba79d02b2d2fcd4725c144936
2   lib,
3   fetchFromGitHub,
4   git,
5   python3,
6 }:
8 python3.pkgs.buildPythonApplication rec {
9   pname = "troubadix";
10   version = "24.10.2";
11   pyproject = true;
13   src = fetchFromGitHub {
14     owner = "greenbone";
15     repo = "troubadix";
16     rev = "refs/tags/v${version}";
17     hash = "sha256-s67701Wk+UDRoSCQWC58k54eF/dcCcqn41SijOz6cbQ=";
18   };
20   pythonRelaxDeps = [ "validators" ];
22   build-system = with python3.pkgs; [ poetry-core ];
25   dependencies = with python3.pkgs; [
26     chardet
27     charset-normalizer
28     pkgs.codespell
29     gitpython
30     pontos
31     python-magic
32     validators
33   ];
35   nativeCheckInputs = with python3.pkgs; [
36     git
37     pytestCheckHook
38   ];
40   preCheck = ''
41     export HOME=$(mktemp -d)
42   '';
44   pythonImportsCheck = [ "troubadix" ];
46   disabledTests = [
47     # AssertionError
48     "test_ok"
49     # TypeError
50     "testgit"
51   ];
53   meta = with lib; {
54     description = "Linting tool for NASL files";
55     homepage = "https://github.com/greenbone/troubadix";
56     changelog = "https://github.com/greenbone/troubadix/releases/tag/v${version}";
57     license = licenses.gpl3Only;
58     maintainers = with maintainers; [ fab ];
59     mainProgram = "troubadix";
60   };