From f97c2cfddf2d1d7feb054d11db19ef6c6508be02 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 3 Dec 2024 13:19:12 +0100 Subject: [PATCH] wafw00f: refactor - format with nixfmt - add changelog to meta --- pkgs/by-name/wa/wafw00f/package.nix | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/pkgs/by-name/wa/wafw00f/package.nix b/pkgs/by-name/wa/wafw00f/package.nix index d8d89a3e325a..11925b7afd6d 100644 --- a/pkgs/by-name/wa/wafw00f/package.nix +++ b/pkgs/by-name/wa/wafw00f/package.nix @@ -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"; }; }