File tree Expand file tree Collapse file tree 1 file changed +30
-1
lines changed
pkgs/development/python-modules/dirsearch Expand file tree Collapse file tree 1 file changed +30
-1
lines changed Original file line number Diff line number Diff line change 33 fetchFromGitHub ,
44 buildPythonPackage ,
55 python ,
6+ pytestCheckHook ,
67 # deps
78 /*
89 ntlm-auth is in the requirements.txt, however nixpkgs tells me
@@ -50,6 +51,9 @@ buildPythonPackage rec {
5051 --replace-fail 'shutil.copytree(os.path.abspath(os.getcwd()), os.path.join(env_dir, "dirsearch"))' ""
5152 '' ;
5253
54+ pyproject = true ;
55+ build-system = [ setuptools ] ;
56+
5357 dependencies = [
5458 # maybe needed, see above
5559 #pyspnego
@@ -84,9 +88,34 @@ buildPythonPackage rec {
8488 cp -r $src/db $dirsearchpath/dirsearch
8589 '' ;
8690
91+ # tests
92+ nativeCheckInputs = [
93+ pytestCheckHook
94+ ] ;
95+ disabledTestPaths = [
96+ # needs network?
97+ "tests/reports/test_reports.py"
98+ ] ;
99+ disabledTests = [
100+ # failing for unknown reason
101+ "test_detect_scheme"
102+ ] ;
103+ pythonRemoveDeps = [
104+ # not available, see above
105+ "ntlm-auth"
106+ ] ;
107+ pythonRelaxDeps = [
108+ # version checker doesn't recognize 0.8.0.rc2 as >=0.7.0
109+ "defusedxml"
110+ # probably not but we don't have old charset-normalizer versions in nixpkgs
111+ # and requests also depends on it so we can't just override it with an
112+ # older version due to package duplication
113+ "charset-normalizer"
114+ ] ;
115+
87116 meta = {
88117 changelog = "https://github.com/maurosoria/dirsearch/releases/tag/${ version } " ;
89- description = "command -line tool for brute-forcing directories and files in webservers, AKA a web path scanner" ;
118+ description = "Command -line tool for brute-forcing directories and files in webservers, AKA a web path scanner" ;
90119 homepage = "https://github.com/maurosoria/dirsearch" ;
91120 license = lib . licenses . gpl2Only ;
92121 mainProgram = "dirsearch" ;
You can’t perform that action at this time.
0 commit comments