python312Packages.osmnx: 1.9.3 → 2.0.0 (#360529)
[NixPkgs.git] / pkgs / development / python-modules / reptor / default.nix
blobc8326128fac86ccd0b43fbb4ece73d6cad316353
2   lib,
3   asgiref,
4   buildPythonPackage,
5   certifi,
6   charset-normalizer,
7   cvss,
8   deepl,
9   django,
10   fetchFromGitHub,
11   gql,
12   idna,
13   markdown-it-py,
14   mdurl,
15   pygments,
16   pytestCheckHook,
17   pythonOlder,
18   pyyaml,
19   requests,
20   rich,
21   setuptools,
22   sqlparse,
23   termcolor,
24   tomli,
25   tomli-w,
26   tomlkit,
27   urllib3,
28   xmltodict,
31 buildPythonPackage rec {
32   pname = "reptor";
33   version = "0.24";
34   pyproject = true;
36   disabled = pythonOlder "3.9";
38   src = fetchFromGitHub {
39     owner = "Syslifters";
40     repo = "reptor";
41     rev = "refs/tags/${version}";
42     hash = "sha256-OHS9fkJ9BomZNYgnmIv4AVFfLH40LSdvmZskhzdE9II=";
43   };
45   pythonRelaxDeps = true;
47   build-system = [ setuptools ];
50   dependencies = [
51     asgiref
52     certifi
53     charset-normalizer
54     cvss
55     django
56     idna
57     markdown-it-py
58     mdurl
59     pygments
60     pyyaml
61     requests
62     rich
63     sqlparse
64     termcolor
65     tomli
66     tomlkit
67     tomli-w
68     urllib3
69     xmltodict
70   ];
72   optional-dependencies = {
73     ghostwriter = [ gql ] ++ gql.optional-dependencies.aiohttp;
74     translate = [ deepl ];
75   };
77   nativeCheckInputs = [
78     pytestCheckHook
79   ] ++ lib.flatten (builtins.attrValues optional-dependencies);
81   preCheck = ''
82     export HOME=$(mktemp -d)
83     export PATH="$PATH:$out/bin";
84   '';
86   pythonImportsCheck = [ "reptor" ];
88   disabledTestPaths = [
89     # Tests want to use pip install dependencies
90     "reptor/plugins/importers/GhostWriter/tests/test_ghostwriter.py"
91   ];
93   disabledTests = [
94     # Tests need network access
95     "TestDummy"
96     "TestIntegration"
97   ];
99   meta = with lib; {
100     description = "Module to do automated pentest reporting with SysReptor";
101     homepage = "https://github.com/Syslifters/reptor";
102     changelog = "https://github.com/Syslifters/reptor/releases/tag/${version}";
103     license = licenses.mit;
104     maintainers = with maintainers; [ fab ];
105     mainProgram = "reptor";
106   };