wafw00f: migrate to new Python app style

This commit is contained in:
Fabian Affolter 2021-12-11 23:09:13 +01:00
parent 5e4feb3c2d
commit e936cee0b5
2 changed files with 9 additions and 7 deletions

View file

@ -1,13 +1,12 @@
{ lib { lib
, buildPythonApplication
, fetchFromGitHub , fetchFromGitHub
, pluginbase , python3
, requests
}: }:
buildPythonApplication rec { python3.pkgs.buildPythonApplication rec {
pname = "wafw00f"; pname = "wafw00f";
version = "2.1.0"; version = "2.1.0";
format = "setuptools";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "EnableSecurity"; owner = "EnableSecurity";
@ -16,14 +15,17 @@ buildPythonApplication rec {
sha256 = "0526kz6ypww9nxc2vddkhpn1gqvn25mzj3wmi91wwxwxjjb6w4qj"; sha256 = "0526kz6ypww9nxc2vddkhpn1gqvn25mzj3wmi91wwxwxjjb6w4qj";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = with python3.pkgs; [
requests requests
pluginbase pluginbase
]; ];
# Project has no tests # Project has no tests
doCheck = false; doCheck = false;
pythonImportsCheck = [ "wafw00f" ];
pythonImportsCheck = [
"wafw00f"
];
meta = with lib; { meta = with lib; {
description = "Tool to identify and fingerprint Web Application Firewalls (WAF)"; description = "Tool to identify and fingerprint Web Application Firewalls (WAF)";

View file

@ -29149,7 +29149,7 @@ with pkgs;
wad = python3Packages.callPackage ../tools/security/wad { }; wad = python3Packages.callPackage ../tools/security/wad { };
wafw00f = python3Packages.callPackage ../tools/security/wafw00f { }; wafw00f = callPackage ../tools/security/wafw00f { };
waon = callPackage ../applications/audio/waon { }; waon = callPackage ../applications/audio/waon { };