wafw00f: refactor

- format with nixfmt
- add changelog to meta
This commit is contained in:
Fabian Affolter
2024-12-03 13:19:12 +01:00
parent 08061fddcc
commit f97c2cfddf
+14 -12
View File
@@ -1,21 +1,24 @@
{ lib
, fetchFromGitHub
, python3
{
lib,
fetchFromGitHub,
python3,
}:
python3.pkgs.buildPythonApplication rec {
pname = "wafw00f";
version = "2.2.0";
format = "setuptools";
pyproject = true;
src = fetchFromGitHub {
owner = "EnableSecurity";
repo = pname;
repo = "wafw00f";
rev = "refs/tags/v${version}";
sha256 = "sha256-wJZ1/aRMFpE6Q5YAtGxXwxe2G9H/de+l3l0C5rwEWA8=";
hash = "sha256-wJZ1/aRMFpE6Q5YAtGxXwxe2G9H/de+l3l0C5rwEWA8=";
};
propagatedBuildInputs = with python3.pkgs; [
build-system = with python3.pkgs; [ setuptools ];
dependencies = with python3.pkgs; [
requests
pluginbase
];
@@ -23,15 +26,14 @@ python3.pkgs.buildPythonApplication rec {
# Project has no tests
doCheck = false;
pythonImportsCheck = [
"wafw00f"
];
pythonImportsCheck = [ "wafw00f" ];
meta = with lib; {
description = "Tool to identify and fingerprint Web Application Firewalls (WAF)";
mainProgram = "wafw00f";
homepage = "https://github.com/EnableSecurity/wafw00f";
license = with licenses; [ bsd3 ];
changelog = "https://github.com/EnableSecurity/wafw00f/releases/tag/v${version}";
license = licenses.bsd3;
maintainers = with maintainers; [ fab ];
mainProgram = "wafw00f";
};
}