3
0
Fork 0
forked from mirrors/nixpkgs

wapiti: 3.0.4 -> 3.0.5

This commit is contained in:
Fabian Affolter 2021-07-31 19:53:32 +02:00
parent bd3eb499b8
commit 72dce4c560

View file

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