31 buildPythonPackage rec {
36 disabled = pythonOlder "3.9";
38 src = fetchFromGitHub {
41 rev = "refs/tags/${version}";
42 hash = "sha256-OHS9fkJ9BomZNYgnmIv4AVFfLH40LSdvmZskhzdE9II=";
45 pythonRelaxDeps = true;
47 build-system = [ setuptools ];
72 optional-dependencies = {
73 ghostwriter = [ gql ] ++ gql.optional-dependencies.aiohttp;
74 translate = [ deepl ];
79 ] ++ lib.flatten (builtins.attrValues optional-dependencies);
82 export HOME=$(mktemp -d)
83 export PATH="$PATH:$out/bin";
86 pythonImportsCheck = [ "reptor" ];
89 # Tests want to use pip install dependencies
90 "reptor/plugins/importers/GhostWriter/tests/test_ghostwriter.py"
94 # Tests need network access
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";