34 buildPythonPackage rec {
39 disabled = pythonOlder "3.8";
41 src = fetchFromGitHub {
44 rev = "refs/tags/${version}";
45 hash = "sha256-7ZmMG1Fil8/JAks50baT/p1H7wHjap58+i81/DFlSAk=";
48 pythonRelaxDeps = true;
50 build-system = [ setuptools ];
52 nativeBuildInputs = [ pythonRelaxDepsHook ];
76 passthru.optional-dependencies = {
77 ghostwriter = [ gql ] ++ gql.optional-dependencies.aiohttp;
78 translate = [ deepl ];
83 ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
86 export HOME=$(mktemp -d)
87 export PATH="$PATH:$out/bin";
90 pythonImportsCheck = [ "reptor" ];
93 # Tests want to use pip install dependencies
94 "reptor/plugins/importers/GhostWriter/tests/test_ghostwriter.py"
98 # Tests need network access
104 description = "Module to do automated pentest reporting with SysReptor";
105 mainProgram = "reptor";
106 homepage = "https://github.com/Syslifters/reptor";
107 changelog = "https://github.com/Syslifters/reptor/releases/tag/${version}";
108 license = licenses.mit;
109 maintainers = with maintainers; [ fab ];