about summary refs log tree commit diff
path: root/pkgs/tools/security/wafw00f
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2021-12-11 23:09:13 +0100
committerFabian Affolter <mail@fabian-affolter.ch>2021-12-11 23:09:13 +0100
commite936cee0b58bb979059218433eebeb8faed321da (patch)
treeea85cc16bb4a3fd06743683705619896887b0300 /pkgs/tools/security/wafw00f
parent5e4feb3c2da78853c87f29d97e34096facf5a10d (diff)
wafw00f: migrate to new Python app style
Diffstat (limited to 'pkgs/tools/security/wafw00f')
-rw-r--r--pkgs/tools/security/wafw00f/default.nix14
1 files changed, 8 insertions, 6 deletions
diff --git a/pkgs/tools/security/wafw00f/default.nix b/pkgs/tools/security/wafw00f/default.nix
index dae4f5a5ad0c6..0e363b608fd45 100644
--- a/pkgs/tools/security/wafw00f/default.nix
+++ b/pkgs/tools/security/wafw00f/default.nix
@@ -1,13 +1,12 @@
 { lib
-, buildPythonApplication
 , fetchFromGitHub
-, pluginbase
-, requests
+, python3
 }:
 
-buildPythonApplication rec {
+python3.pkgs.buildPythonApplication rec {
   pname = "wafw00f";
   version = "2.1.0";
+  format = "setuptools";
 
   src = fetchFromGitHub {
     owner = "EnableSecurity";
@@ -16,14 +15,17 @@ buildPythonApplication rec {
     sha256 = "0526kz6ypww9nxc2vddkhpn1gqvn25mzj3wmi91wwxwxjjb6w4qj";
   };
 
-  propagatedBuildInputs = [
+  propagatedBuildInputs = with python3.pkgs; [
     requests
     pluginbase
   ];
 
   # Project has no tests
   doCheck = false;
-  pythonImportsCheck = [ "wafw00f" ];
+
+  pythonImportsCheck = [
+    "wafw00f"
+  ];
 
   meta = with lib; {
     description = "Tool to identify and fingerprint Web Application Firewalls (WAF)";