wapiti: 3.0.4 -> 3.0.5
This commit is contained in:
parent
bd3eb499b8
commit
72dce4c560
1 changed files with 25 additions and 6 deletions
|
@ -5,13 +5,13 @@
|
||||||
|
|
||||||
python3.pkgs.buildPythonApplication rec {
|
python3.pkgs.buildPythonApplication rec {
|
||||||
pname = "wapiti";
|
pname = "wapiti";
|
||||||
version = "3.0.4";
|
version = "3.0.5";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "wapiti-scanner";
|
owner = "wapiti-scanner";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "0wnz4nq1q5y74ksb1kcss9vdih0kbrmnkfbyc2ngd9id1ixfamxb";
|
sha256 = "0663hzpmn6p5xh65d2gk4yk2zh992lfd9lhdwwabhpv3n85nza75";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = with python3.pkgs; [
|
nativeBuildInputs = with python3.pkgs; [
|
||||||
|
@ -21,24 +21,34 @@ python3.pkgs.buildPythonApplication rec {
|
||||||
propagatedBuildInputs = with python3.pkgs; [
|
propagatedBuildInputs = with python3.pkgs; [
|
||||||
beautifulsoup4
|
beautifulsoup4
|
||||||
browser-cookie3
|
browser-cookie3
|
||||||
|
cryptography
|
||||||
Mako
|
Mako
|
||||||
markupsafe
|
markupsafe
|
||||||
pysocks
|
pysocks
|
||||||
requests
|
httpx
|
||||||
|
httpx-ntlm
|
||||||
|
httpx-socks
|
||||||
six
|
six
|
||||||
tld
|
tld
|
||||||
yaswfp
|
yaswfp
|
||||||
] ++ lib.optionals (python3.pythonOlder "3.8") [ importlib-metadata ];
|
] ++ lib.optionals (python3.pythonOlder "3.8") [ importlib-metadata ];
|
||||||
|
|
||||||
checkInputs = with python3.pkgs; [
|
checkInputs = with python3.pkgs; [
|
||||||
responses
|
respx
|
||||||
|
pytest-asyncio
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
# Is already fixed in the repo. Will be part of the next release
|
# Ignore pinned versions
|
||||||
substituteInPlace setup.py \
|
substituteInPlace setup.py \
|
||||||
--replace "importlib_metadata==2.0.0" "importlib_metadata"
|
--replace "==" ">="
|
||||||
|
substituteInPlace setup.cfg \
|
||||||
|
--replace " --cov" ""
|
||||||
|
'';
|
||||||
|
|
||||||
|
preCheck = ''
|
||||||
|
export HOME=$(mktemp -d);
|
||||||
'';
|
'';
|
||||||
|
|
||||||
disabledTests = [
|
disabledTests = [
|
||||||
|
@ -47,6 +57,10 @@ python3.pkgs.buildPythonApplication rec {
|
||||||
"test_bad_separator_used"
|
"test_bad_separator_used"
|
||||||
"test_blind"
|
"test_blind"
|
||||||
"test_chunked_timeout"
|
"test_chunked_timeout"
|
||||||
|
"test_cookies"
|
||||||
|
"test_drop_cookies"
|
||||||
|
"test_save_and_restore_state"
|
||||||
|
"test_explorer_extract_links"
|
||||||
"test_cookies_detection"
|
"test_cookies_detection"
|
||||||
"test_csrf_cases"
|
"test_csrf_cases"
|
||||||
"test_detection"
|
"test_detection"
|
||||||
|
@ -63,6 +77,8 @@ python3.pkgs.buildPythonApplication rec {
|
||||||
"test_no_crash"
|
"test_no_crash"
|
||||||
"test_options"
|
"test_options"
|
||||||
"test_out_of_band"
|
"test_out_of_band"
|
||||||
|
"test_multi_detection"
|
||||||
|
"test_vulnerabilities"
|
||||||
"test_partial_tag_name_escape"
|
"test_partial_tag_name_escape"
|
||||||
"test_prefix_and_suffix_detection"
|
"test_prefix_and_suffix_detection"
|
||||||
"test_qs_limit"
|
"test_qs_limit"
|
||||||
|
@ -85,6 +101,9 @@ python3.pkgs.buildPythonApplication rec {
|
||||||
"test_xss_with_strong_csp"
|
"test_xss_with_strong_csp"
|
||||||
"test_xss_with_weak_csp"
|
"test_xss_with_weak_csp"
|
||||||
"test_xxe"
|
"test_xxe"
|
||||||
|
# Requires a PHP installation
|
||||||
|
"test_timesql"
|
||||||
|
"test_cookies"
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [ "wapitiCore" ];
|
pythonImportsCheck = [ "wapitiCore" ];
|
||||||
|
|
Loading…
Reference in a new issue