Merge pull request #335543 from fabaff/wapiti-bump

wapiti: 3.1.8 -> 3.2.0
This commit is contained in:
Robert Scott
2024-08-18 17:16:23 +01:00
committed by GitHub
2 changed files with 18 additions and 17 deletions

View File

@@ -13,6 +13,7 @@
setuptools-scm, setuptools-scm,
six, six,
swagger-spec-validator, swagger-spec-validator,
pytest-cov-stub,
pytestCheckHook, pytestCheckHook,
openapi-spec-validator, openapi-spec-validator,
}: }:
@@ -20,26 +21,21 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "prance"; pname = "prance";
version = "23.06.21.0"; version = "23.06.21.0";
format = "pyproject"; pyproject = true;
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "RonnyPfannschmidt"; owner = "RonnyPfannschmidt";
repo = pname; repo = "prance";
rev = "v${version}"; rev = "refs/tags/v${version}";
fetchSubmodules = true; fetchSubmodules = true;
hash = "sha256-p+LZbQal4DPeMp+eJ2O83rCaL+QIUDcU34pZhYdN4bE="; hash = "sha256-p+LZbQal4DPeMp+eJ2O83rCaL+QIUDcU34pZhYdN4bE=";
}; };
postPatch = '' build-system = [ setuptools-scm ];
substituteInPlace setup.cfg \
--replace "--cov=prance --cov-report=term-missing --cov-fail-under=90" ""
'';
nativeBuildInputs = [ setuptools-scm ]; dependencies = [
propagatedBuildInputs = [
chardet chardet
packaging packaging
requests requests
@@ -56,6 +52,7 @@ buildPythonPackage rec {
}; };
nativeCheckInputs = [ nativeCheckInputs = [
pytest-cov-stub
pytestCheckHook pytestCheckHook
] ++ lib.flatten (lib.attrValues passthru.optional-dependencies); ] ++ lib.flatten (lib.attrValues passthru.optional-dependencies);
@@ -70,11 +67,11 @@ buildPythonPackage rec {
pythonImportsCheck = [ "prance" ]; pythonImportsCheck = [ "prance" ];
meta = with lib; { meta = with lib; {
changelog = "https://github.com/RonnyPfannschmidt/prance/blob/${src.rev}/CHANGES.rst";
description = "Resolving Swagger/OpenAPI 2.0 and 3.0.0 Parser"; description = "Resolving Swagger/OpenAPI 2.0 and 3.0.0 Parser";
mainProgram = "prance";
homepage = "https://github.com/RonnyPfannschmidt/prance"; homepage = "https://github.com/RonnyPfannschmidt/prance";
changelog = "https://github.com/RonnyPfannschmidt/prance/blob/${src.rev}/CHANGES.rst";
license = licenses.mit; license = licenses.mit;
maintainers = [ ]; maintainers = [ ];
mainProgram = "prance";
}; };
} }

View File

@@ -6,27 +6,26 @@
python3.pkgs.buildPythonApplication rec { python3.pkgs.buildPythonApplication rec {
pname = "wapiti"; pname = "wapiti";
version = "3.1.8"; version = "3.2.0";
pyproject = true; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "wapiti-scanner"; owner = "wapiti-scanner";
repo = "wapiti"; repo = "wapiti";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-2ssbczUa4pTA5Fai+sK1hES8skJMIHxa/R2hNIiEVLs="; hash = "sha256-Ekh31MXqxY6iSyQRX0YZ0Tl7DFhYqGtOepYS/VObZc0=";
}; };
postPatch = '' postPatch = ''
# Remove code coverage checking # Remove code coverage checking
substituteInPlace pyproject.toml \ substituteInPlace pyproject.toml \
--replace "--cov --cov-report=xml" "" --replace-fail "--cov --cov-report=xml" ""
''; '';
pythonRelaxDeps = true; pythonRelaxDeps = true;
build-system = with python3.pkgs; [ setuptools ]; build-system = with python3.pkgs; [ setuptools ];
dependencies = dependencies =
with python3.pkgs; with python3.pkgs;
[ [
@@ -41,10 +40,12 @@ python3.pkgs.buildPythonApplication rec {
httpcore httpcore
httpx httpx
httpx-ntlm httpx-ntlm
humanize
loguru loguru
mako mako
markupsafe markupsafe
mitmproxy mitmproxy
prance
pyasn1 pyasn1
six six
sqlalchemy sqlalchemy
@@ -52,7 +53,8 @@ python3.pkgs.buildPythonApplication rec {
yaswfp yaswfp
] ]
++ httpx.optional-dependencies.brotli ++ httpx.optional-dependencies.brotli
++ httpx.optional-dependencies.socks; ++ httpx.optional-dependencies.socks
++ prance.optional-dependencies.osv;
__darwinAllowLocalNetworking = true; __darwinAllowLocalNetworking = true;
@@ -103,6 +105,7 @@ python3.pkgs.buildPythonApplication rec {
"test_save_and_restore_state" "test_save_and_restore_state"
"test_script" "test_script"
"test_ssrf" "test_ssrf"
"test_swagger_parser"
"test_tag_name_escape" "test_tag_name_escape"
"test_timeout" "test_timeout"
"test_title_false_positive" "test_title_false_positive"
@@ -124,6 +127,7 @@ python3.pkgs.buildPythonApplication rec {
"test_cookies" "test_cookies"
"test_fallback_to_html_injection" "test_fallback_to_html_injection"
"test_loknop_lfi_to_rce" "test_loknop_lfi_to_rce"
"test_open_redirect"
"test_redirect" "test_redirect"
"test_timesql" "test_timesql"
"test_xss_inside_href_link" "test_xss_inside_href_link"