lol

wapiti: 3.2.2 -> 3.2.4 (#403435)

authored by

Gaétan Lepage and committed by
GitHub
7b5e70cc c2dcf9be

+173 -47
+67 -47
pkgs/by-name/wa/wapiti/package.nix
··· 1 1 { 2 2 lib, 3 3 fetchFromGitHub, 4 - python3, 4 + python3Packages, 5 + fetchpatch, 6 + versionCheckHook, 7 + writableTmpDirAsHomeHook, 8 + nix-update-script, 5 9 }: 6 10 7 - python3.pkgs.buildPythonApplication rec { 11 + python3Packages.buildPythonApplication rec { 8 12 pname = "wapiti"; 9 - version = "3.2.2"; 13 + version = "3.2.4"; 10 14 pyproject = true; 11 15 12 16 src = fetchFromGitHub { 13 17 owner = "wapiti-scanner"; 14 18 repo = "wapiti"; 15 19 tag = version; 16 - hash = "sha256-sa4bXZiY5yd0wynUjdLnuuX7Ee0w4APd1G/oGy5AUDk="; 20 + hash = "sha256-97RYJKCk3oY715mgkFNstrrhWc1Q7jZqktqt7l8uzGs="; 17 21 }; 18 22 23 + patches = [ 24 + # Fixes: 25 + # TypeError: AsyncClient.__init__() got an unexpected keyword argument 'proxies' 26 + (fetchpatch { 27 + name = "fix-wappalyzer-warnings"; 28 + url = "https://github.com/wapiti-scanner/wapiti/commit/77fe140f8ad4d2fb266f1b49285479f6af25d6b7.patch"; 29 + hash = "sha256-Htkpr+67V0bp4u8HbMP+yTZ4rlIWDadLZxLDSruDbZY="; 30 + }) 31 + ]; 32 + 19 33 pythonRelaxDeps = true; 20 34 21 - build-system = with python3.pkgs; [ setuptools ]; 35 + build-system = with python3Packages; [ setuptools ]; 22 36 23 - dependencies = 24 - with python3.pkgs; 25 - [ 26 - aiocache 27 - aiohttp 28 - aiosqlite 29 - arsenic 30 - beautifulsoup4 31 - browser-cookie3 32 - dnspython 33 - h11 34 - httpcore 35 - httpx 36 - httpx-ntlm 37 - humanize 38 - loguru 39 - mako 40 - markupsafe 41 - mitmproxy 42 - prance 43 - pyasn1 44 - six 45 - sqlalchemy 46 - tld 47 - yaswfp 48 - ] 49 - ++ httpx.optional-dependencies.brotli 50 - ++ httpx.optional-dependencies.socks 51 - ++ prance.optional-dependencies.osv; 37 + dependencies = with python3Packages; [ 38 + aiocache 39 + aiohttp 40 + aiosqlite 41 + beautifulsoup4 42 + browser-cookie3 43 + dnspython 44 + h11 45 + httpcore 46 + httpx 47 + httpx-ntlm 48 + humanize 49 + loguru 50 + mako 51 + markupsafe 52 + mitmproxy 53 + msgpack 54 + packaging 55 + pyasn1 56 + sqlalchemy 57 + tld 58 + typing-extensions 59 + urwid 60 + yaswfp 61 + wapiti-arsenic 62 + wapiti-swagger 63 + ]; 52 64 53 65 __darwinAllowLocalNetworking = true; 54 66 55 - nativeCheckInputs = with python3.pkgs; [ 56 - respx 57 - pytest-asyncio 58 - pytest-cov-stub 59 - pytestCheckHook 60 - ]; 61 - 62 - preCheck = '' 63 - export HOME=$(mktemp -d); 64 - ''; 67 + nativeCheckInputs = 68 + with python3Packages; 69 + [ 70 + respx 71 + pytest-asyncio 72 + pytest-cov-stub 73 + pytestCheckHook 74 + ] 75 + ++ [ 76 + versionCheckHook 77 + writableTmpDirAsHomeHook 78 + ]; 79 + versionCheckProgramArg = "--version"; 65 80 66 81 disabledTests = [ 67 82 # Tests requires network access ··· 140 155 141 156 pythonImportsCheck = [ "wapitiCore" ]; 142 157 143 - meta = with lib; { 158 + passthru = { 159 + updateScript = nix-update-script { }; 160 + }; 161 + 162 + meta = { 144 163 description = "Web application vulnerability scanner"; 145 164 longDescription = '' 146 165 Wapiti allows you to audit the security of your websites or web applications. ··· 152 171 ''; 153 172 homepage = "https://wapiti-scanner.github.io/"; 154 173 changelog = "https://github.com/wapiti-scanner/wapiti/blob/${version}/doc/ChangeLog_Wapiti"; 155 - license = licenses.gpl2Only; 156 - maintainers = with maintainers; [ fab ]; 174 + license = lib.licenses.gpl2Only; 175 + maintainers = with lib.maintainers; [ fab ]; 176 + mainProgram = "wapiti"; 157 177 }; 158 178 }
+60
pkgs/development/python-modules/wapiti-arsenic/default.nix
··· 1 + { 2 + lib, 3 + buildPythonPackage, 4 + fetchPypi, 5 + 6 + # build-system 7 + poetry-core, 8 + 9 + # dependencies 10 + aiohttp, 11 + attrs, 12 + packaging, 13 + structlog, 14 + }: 15 + 16 + buildPythonPackage rec { 17 + pname = "wapiti-arsenic"; 18 + version = "28.2"; 19 + pyproject = true; 20 + 21 + # Latest tag is not on GitHub 22 + src = fetchPypi { 23 + pname = "wapiti_arsenic"; 24 + inherit version; 25 + hash = "sha256-QxjM0BsiHm/LPUuGLLPG6OUcr4YXBEpfJGTwKp1zTWQ="; 26 + }; 27 + 28 + postPatch = '' 29 + substituteInPlace pyproject.toml \ 30 + --replace-fail "poetry>=0.12" "poetry-core" \ 31 + --replace-fail "poetry.masonry" "poetry.core.masonry" 32 + ''; 33 + 34 + build-system = [ 35 + poetry-core 36 + ]; 37 + 38 + pythonRelaxDeps = [ 39 + "structlog" 40 + ]; 41 + 42 + dependencies = [ 43 + aiohttp 44 + attrs 45 + packaging 46 + structlog 47 + ]; 48 + 49 + pythonImportsCheck = [ "wapiti_arsenic" ]; 50 + 51 + # No tests in the pypi archive 52 + doCheck = false; 53 + 54 + meta = { 55 + description = "Asynchronous WebDriver client"; 56 + homepage = "https://github.com/wapiti-scanner/arsenic"; 57 + license = lib.licenses.asl20; 58 + maintainers = with lib.maintainers; [ GaetanLepage ]; 59 + }; 60 + }
+42
pkgs/development/python-modules/wapiti-swagger/default.nix
··· 1 + { 2 + lib, 3 + buildPythonPackage, 4 + fetchFromGitHub, 5 + setuptools, 6 + pyyaml, 7 + pytestCheckHook, 8 + }: 9 + 10 + buildPythonPackage rec { 11 + pname = "wapiti-swagger"; 12 + version = "0.1.9"; 13 + pyproject = true; 14 + 15 + src = fetchFromGitHub { 16 + owner = "wapiti-scanner"; 17 + repo = "wapiti_swagger"; 18 + tag = version; 19 + hash = "sha256-On4R5+9+6w8CdZYQ8oxAfuxWTQZotkxjrIf497lETfw="; 20 + }; 21 + 22 + build-system = [ 23 + setuptools 24 + ]; 25 + 26 + dependencies = [ 27 + pyyaml 28 + ]; 29 + 30 + pythonImportsCheck = [ "wapiti_swagger" ]; 31 + 32 + nativeCheckInputs = [ 33 + pytestCheckHook 34 + ]; 35 + 36 + meta = { 37 + description = "Library for parsing and generating request bodies from Swagger/OpenAPI specifications"; 38 + homepage = "https://github.com/wapiti-scanner/wapiti_swagger"; 39 + license = lib.licenses.mit; 40 + maintainers = with lib.maintainers; [ GaetanLepage ]; 41 + }; 42 + }
+4
pkgs/top-level/python-packages.nix
··· 18778 18778 18779 18779 wandb = callPackage ../development/python-modules/wandb { }; 18780 18780 18781 + wapiti-arsenic = callPackage ../development/python-modules/wapiti-arsenic { }; 18782 + 18783 + wapiti-swagger = callPackage ../development/python-modules/wapiti-swagger { }; 18784 + 18781 18785 waqiasync = callPackage ../development/python-modules/waqiasync { }; 18782 18786 18783 18787 warble = callPackage ../development/python-modules/warble { };